Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IHttpService

Hierarchy

  • IHttpService

Callable

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

    Type parameters

    • T

    Parameters

    Returns IHttpPromise<T>

Index

Properties

defaults

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

pendingRequests

pendingRequests: IRequestConfig[]

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

Methods

delete

  • Shortcut method to perform DELETE request.

    Type parameters

    • T

    Parameters

    • url: string

      Relative or absolute URL specifying the destination of the request

    • Optional config: IRequestShortcutConfig

      Optional configuration object

    Returns IHttpPromise<T>

get

  • Shortcut method to perform GET request.

    Type parameters

    • T

    Parameters

    • url: string

      Relative or absolute URL specifying the destination of the request

    • Optional config: IRequestShortcutConfig

      Optional configuration object

    Returns IHttpPromise<T>

head

  • Shortcut method to perform HEAD request.

    Type parameters

    • T

    Parameters

    • url: string

      Relative or absolute URL specifying the destination of the request

    • Optional config: IRequestShortcutConfig

      Optional configuration object

    Returns IHttpPromise<T>

jsonp

  • Shortcut method to perform JSONP request.

    Type parameters

    • T

    Parameters

    • url: string

      Relative or absolute URL specifying the destination of the request

    • Optional config: IRequestShortcutConfig

      Optional configuration object

    Returns IHttpPromise<T>

patch

  • Shortcut method to perform PATCH request.

    Type parameters

    • T

    Parameters

    • url: string

      Relative or absolute URL specifying the destination of the request

    • data: any

      Request content

    • Optional config: IRequestShortcutConfig

      Optional configuration object

    Returns IHttpPromise<T>

post

  • Shortcut method to perform POST request.

    Type parameters

    • T

    Parameters

    • url: string

      Relative or absolute URL specifying the destination of the request

    • data: any

      Request content

    • Optional config: IRequestShortcutConfig

      Optional configuration object

    Returns IHttpPromise<T>

put

  • Shortcut method to perform PUT request.

    Type parameters

    • T

    Parameters

    • url: string

      Relative or absolute URL specifying the destination of the request

    • data: any

      Request content

    • Optional config: IRequestShortcutConfig

      Optional configuration object

    Returns IHttpPromise<T>

Generated using TypeDoc