Methods
delete
- delete(url: string, params?: undefined | object, headers?: undefined | object): Promise<R>
-
Parameters
-
url: string
-
Optional params: undefined | object
-
Optional headers: undefined | object
Returns Promise<R>
the HTTP response body.
get
- get(url: string, params?: undefined | object, headers?: undefined | object): Promise<R>
-
Parameters
-
url: string
-
Optional params: undefined | object
-
Optional headers: undefined | object
Returns Promise<R>
the HTTP response body.
map
- map<T>(response: Promise<R>): Promise<T>
-
Type parameters
Parameters
Returns Promise<T>
the HTTP response body.
mapBinary
- mapBinary(response: Promise<R>): Promise<ArrayBuffer>
-
Parameters
Returns Promise<ArrayBuffer>
the HTTP response body.
mapText
- mapText(response: Promise<R>): Promise<string>
-
Parameters
Returns Promise<string>
the HTTP response body.
post
- post(url: string, body?: any, params?: undefined | object, headers?: undefined | object): Promise<R>
-
Parameters
-
url: string
-
Optional body: any
-
Optional params: undefined | object
-
Optional headers: undefined | object
Returns Promise<R>
the HTTP response body.
put
- put(url: string, body?: any, params?: undefined | object, headers?: undefined | object): Promise<R>
-
Parameters
-
url: string
-
Optional body: any
-
Optional params: undefined | object
-
Optional headers: undefined | object
Returns Promise<R>
the HTTP response body.
Interface for classes that provide an adapter to an HTTP client implementation.