Interface IHttpBackendService

Index

Call signatures

Methods

Call signatures

(method: string, url: string, post?: any, callback?: Function, headers?: any, timeout?: number, withCredentials?: boolean)

Parameters

  • method: string
  • url: string
  • post?: any optional
  • callback?: Function optional
  • headers?: any optional
  • timeout?: number optional
  • withCredentials?: boolean optional

Methods

public expect(method: string, url: string, data?: string, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public expect(method: string, url: string, data?: string, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: string optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public expect(method: string, url: string, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public expect(method: string, url: string, data?: RegExp, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: RegExp optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public expect(method: string, url: string, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public expect(method: string, url: string, data?: (data: string) => boolean, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: (data: string) => boolean optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public expect(method: string, url: string, data?: Object, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public expect(method: string, url: string, data?: Object, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: Object optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public expect(method: string, url: RegExp, data?: string, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public expect(method: string, url: RegExp, data?: string, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: string optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public expect(method: string, url: RegExp, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public expect(method: string, url: RegExp, data?: RegExp, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: RegExp optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public expect(method: string, url: RegExp, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public expect(method: string, url: RegExp, data?: (data: string) => boolean, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: (data: string) => boolean optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public expect(method: string, url: RegExp, data?: Object, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public expect(method: string, url: RegExp, data?: Object, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: Object optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public expectDELETE(url: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • headers?: Object optional

Returns

IRequestHandler

public expectDELETE(url: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • headers?: Object optional

Returns

IRequestHandler

public expectGET(url: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • headers?: Object optional

Returns

IRequestHandler

public expectGET(url: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • headers?: Object optional

Returns

IRequestHandler

public expectHEAD(url: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • headers?: Object optional

Returns

IRequestHandler

public expectHEAD(url: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • headers?: Object optional

Returns

IRequestHandler

public expectJSONP(url: string): IRequestHandler

Parameters

  • url: string

Returns

IRequestHandler

public expectJSONP(url: RegExp): IRequestHandler

Parameters

  • url: RegExp

Returns

IRequestHandler

public expectPATCH(url: string, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPATCH(url: string, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPATCH(url: string, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPATCH(url: string, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPATCH(url: RegExp, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPATCH(url: RegExp, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPATCH(url: RegExp, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPATCH(url: RegExp, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPOST(url: string, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPOST(url: string, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPOST(url: string, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPOST(url: string, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPOST(url: RegExp, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPOST(url: RegExp, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPOST(url: RegExp, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPOST(url: RegExp, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPUT(url: string, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPUT(url: string, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPUT(url: string, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPUT(url: string, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPUT(url: RegExp, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPUT(url: RegExp, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPUT(url: RegExp, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public expectPUT(url: RegExp, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public flush(count?: number)

Parameters

  • count?: number optional

public resetExpectations()

public verifyNoOutstandingExpectation()

public verifyNoOutstandingRequest()

public when(method: string, url: string, data?: string, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public when(method: string, url: string, data?: string, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: string optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public when(method: string, url: string, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public when(method: string, url: string, data?: RegExp, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: RegExp optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public when(method: string, url: string, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public when(method: string, url: string, data?: (data: string) => boolean, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: (data: string) => boolean optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public when(method: string, url: string, data?: Object, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public when(method: string, url: string, data?: Object, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: string
  • data?: Object optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public when(method: string, url: RegExp, data?: string, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public when(method: string, url: RegExp, data?: string, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: string optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public when(method: string, url: RegExp, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public when(method: string, url: RegExp, data?: RegExp, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: RegExp optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public when(method: string, url: RegExp, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public when(method: string, url: RegExp, data?: (data: string) => boolean, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: (data: string) => boolean optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public when(method: string, url: RegExp, data?: Object, headers?: Object): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public when(method: string, url: RegExp, data?: Object, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • method: string
  • url: RegExp
  • data?: Object optional
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public whenDELETE(url: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • headers?: Object optional

Returns

IRequestHandler

public whenDELETE(url: string, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • url: string
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public whenDELETE(url: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • headers?: Object optional

Returns

IRequestHandler

public whenDELETE(url: RegExp, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • url: RegExp
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public whenGET(url: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • headers?: Object optional

Returns

IRequestHandler

public whenGET(url: string, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • url: string
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public whenGET(url: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • headers?: Object optional

Returns

IRequestHandler

public whenGET(url: RegExp, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • url: RegExp
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public whenHEAD(url: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • headers?: Object optional

Returns

IRequestHandler

public whenHEAD(url: string, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • url: string
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public whenHEAD(url: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • headers?: Object optional

Returns

IRequestHandler

public whenHEAD(url: RegExp, headers?: (object: Object) => boolean): IRequestHandler

Parameters

  • url: RegExp
  • headers?: (object: Object) => boolean optional

Returns

IRequestHandler

public whenJSONP(url: string): IRequestHandler

Parameters

  • url: string

Returns

IRequestHandler

public whenJSONP(url: RegExp): IRequestHandler

Parameters

  • url: RegExp

Returns

IRequestHandler

public whenPATCH(url: string, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPATCH(url: string, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPATCH(url: string, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPATCH(url: string, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPATCH(url: RegExp, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPATCH(url: RegExp, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPATCH(url: RegExp, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPATCH(url: RegExp, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPOST(url: string, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPOST(url: string, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPOST(url: string, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPOST(url: string, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPOST(url: RegExp, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPOST(url: RegExp, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPOST(url: RegExp, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPOST(url: RegExp, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPUT(url: string, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPUT(url: string, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPUT(url: string, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPUT(url: string, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: string
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPUT(url: RegExp, data?: string, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: string optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPUT(url: RegExp, data?: RegExp, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: RegExp optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPUT(url: RegExp, data?: (data: string) => boolean, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: (data: string) => boolean optional
  • headers?: Object optional

Returns

IRequestHandler

public whenPUT(url: RegExp, data?: Object, headers?: Object): IRequestHandler

Parameters

  • url: RegExp
  • data?: Object optional
  • headers?: Object optional

Returns

IRequestHandler