Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IHttpProvider

Hierarchy

Index

Properties

$get

$get: any

defaults

interceptors

interceptors: string | IHttpInterceptorFactory | Array<string | IHttpInterceptorFactory>

Register service factories (names or implementations) for interceptors which are called before and after each request.

Methods

useApplyAsync

  • useApplyAsync(): boolean
  • useApplyAsync(value: boolean): IHttpProvider
  • Returns boolean

  • Parameters

    • value: boolean

    Returns IHttpProvider

useLegacyPromiseExtensions

  • useLegacyPromiseExtensions(value: boolean): boolean | IHttpProvider
  • Parameters

    • value: boolean

      If true, $http will return a normal promise without the success and error methods.

    Returns boolean | IHttpProvider

    If a value is specified, returns the $httpProvider for chaining. otherwise, returns the current configured value.

Generated using TypeDoc