Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpClient

Hierarchy

Index

Constructors

constructor

  • Returns HttpClient

Accessors

interceptors

  • get interceptors(): any[]
  • Returns any[]

Methods

applyInterceptors

  • applyInterceptors(options: any): any[]
  • Parameters

    • options: any

    Returns any[]

delete

  • delete(url: string, object: any, options: any): void
  • Parameters

    • url: string
    • object: any
    • options: any

    Returns void

flushInterceptors

  • flushInterceptors(): void
  • Returns void

get

  • get(url: string, options?: any): Promise<any>
  • Parameters

    • url: string
    • Default value options: any = {}

    Returns Promise<any>

post

  • post(url: string, object: any, options: any): void
  • Parameters

    • url: string
    • object: any
    • options: any

    Returns void

preflightGet

  • preflightGet(url: string, options?: any): object
  • Parameters

    • url: string
    • Default value options: any = {}

    Returns object

put

  • put(url: string, object: any, options: any): void
  • Parameters

    • url: string
    • object: any
    • options: any

    Returns void

queryParams

  • queryParams(params: any): string
  • Parameters

    • params: any

    Returns string

registerInterceptor

  • registerInterceptor(obj: any): void
  • Parameters

    • obj: any

    Returns void

unregisterInterceptor

  • unregisterInterceptor(obj: any): void
  • Parameters

    • obj: any

    Returns void

Object literals

optionsDefault

optionsDefault: object

cache

cache: string = "no-cache"

credentials

credentials: string = "same-origin"

headers

headers: object

Type declaration

method

method: string = "GET"

mode

mode: string = "same-origin"