Interface IHttpService

HttpService see http://docs.angularjs.org/api/ng/service/$http

Index

Call signatures

Properties

Methods

Call signatures

(config: IRequestConfig): IHttpPromise

Object describing the request to be made and how it should be processed.

Parameters

Returns

IHttpPromise

Properties

public defaults: IRequestConfig

Runtime equivalent of the $httpProvider.defaults property. Allows configuration of default headers, withCredentials as well as request and response transformations.

public pendingRequests: Array<any>

Array of config objects for currently pending requests. This is primarily meant to be used for debugging purposes.

Methods

public delete(url: string, config?: IRequestShortcutConfig): IHttpPromise

Shortcut method to perform DELETE request.

Parameters

  • url: string

    Relative or absolute URL specifying the destination of the request

  • config?: IRequestShortcutConfig optional

    Optional configuration object

Returns

IHttpPromise

public get(url: string, config?: IRequestShortcutConfig): IHttpPromise

Shortcut method to perform GET request.

Parameters

  • url: string

    Relative or absolute URL specifying the destination of the request

  • config?: IRequestShortcutConfig optional

    Optional configuration object

Returns

IHttpPromise

public head(url: string, config?: IRequestShortcutConfig): IHttpPromise

Shortcut method to perform HEAD request.

Parameters

  • url: string

    Relative or absolute URL specifying the destination of the request

  • config?: IRequestShortcutConfig optional

    Optional configuration object

Returns

IHttpPromise

public jsonp(url: string, config?: IRequestShortcutConfig): IHttpPromise

Shortcut method to perform JSONP request.

Parameters

  • url: string

    Relative or absolute URL specifying the destination of the request

  • config?: IRequestShortcutConfig optional

    Optional configuration object

Returns

IHttpPromise

public post(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise

Shortcut method to perform POST request.

Parameters

  • url: string

    Relative or absolute URL specifying the destination of the request

  • data: any

    Request content

  • config?: IRequestShortcutConfig optional

    Optional configuration object

Returns

IHttpPromise

public put(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise

Shortcut method to perform PUT request.

Parameters

  • url: string

    Relative or absolute URL specifying the destination of the request

  • data: any

    Request content

  • config?: IRequestShortcutConfig optional

    Optional configuration object

Returns

IHttpPromise