▪ T
↳ HttpRequestError
+ new HttpRequestError(options
: NormalizedHttpOptions, message?
: undefined | string): HttpRequestError
Defined in packages/http/src/httpRequestError.ts:6
Parameters:
Returns: HttpRequestError
• message: string
Inherited from HttpRequestError.message
Defined in node_modules/typescript/lib/lib.es5.d.ts:974
• name: string
Inherited from HttpRequestError.name
Defined in node_modules/typescript/lib/lib.es5.d.ts:973
• options: NormalizedHttpOptions
Defined in packages/http/src/httpRequestError.ts:8
Optional
stack• stack? : undefined | string
Inherited from HttpRequestError.stack
Overrides HttpRequestError.stack
Defined in node_modules/typescript/lib/lib.es5.d.ts:975
Static
Error▪ Error: ErrorConstructor
Defined in node_modules/typescript/lib/lib.es5.d.ts:984
Base class in Coolio http package, which allows to perform API calls.
▪ T
HttpClient
Parameters:
Adds an interceptor to the client. Interceptor can be written either as class or as a function, which may mutate request options and post-process response from server. Multiple interceptors can be added to a single HttpClient. They can perform as:
cache
error handler
authorizer
logger
auto-retry
redirection handler
Parameters:
Returns: this
Performs a DELETE request.
Type parameters:
▪ Body: T
Parameters:
Performs a GET request.
Type parameters:
▪ Body: T
Parameters:
Performs a PATCH request.
Type parameters:
▪ Body: T
Parameters:
Performs a POST request.
Type parameters:
▪ Body: T
Parameters:
Performs a PUT request.
Type parameters:
▪ Body: T
Parameters:
Performs a DELETE request.
Type parameters:
▪ Body: T
Parameters:
Type parameters:
▪ Body: T
Parameters:
▪ T
↳ HttpResponseError
Parameters:
• message: string
Defined in node_modules/typescript/lib/lib.es5.d.ts:974
• name: string
Defined in node_modules/typescript/lib/lib.es5.d.ts:973
Optional
stack• stack? : undefined | string
Defined in node_modules/typescript/lib/lib.es5.d.ts:975
Static
Error▪ Error: ErrorConstructor
Defined in node_modules/typescript/lib/lib.es5.d.ts:984
+ new HttpClient(config
: ‹T›):
Defined in
Returns:
▸ addInterceptor(interceptor
: ): this
Defined in
▸ delete<Body>(uri
: string, options?
: ): Promise‹‹Body››
Defined in
Returns: Promise‹‹Body››
▸ get<Body>(uri
: string, options?
: ): Promise‹‹Body››
Defined in
Returns: Promise‹‹Body››
▸ patch<Body>(uri
: string, options?
: ): Promise‹‹Body››
Defined in
Returns: Promise‹‹Body››
▸ post<Body>(uri
: string, options?
: ): Promise‹‹Body››
Defined in
Returns: Promise‹‹Body››
▸ put<Body>(uri
: string, options?
: ): Promise‹‹Body››
Defined in
Returns: Promise‹‹Body››
▸ remove<Body>(uri
: string, options?
: ): Promise‹‹any››
Defined in
Returns: Promise‹‹any››
▸ request<Body>(url
: string, options
: ): Promise‹‹Body››
Defined in
Returns: Promise‹‹Body››
+ new HttpResponseHeaders(headers
: IncomingHttpHeaders | | Headers | string):
Defined in
Returns:
Defined in
Defined in
Defined in
+ new HttpResponseError(response
: ‹T›, message?
: undefined | string):
Defined in
Returns:
Inherited from .
Inherited from .
• response: ‹T›
Defined in
Inherited from .
Overrides .
• status:
Defined in
Name
Type
options
message?
undefined | string
Name | Type |
| string |
Name | Type |
| string |
| any |
Name | Type |
|
Name | Type | Description |
| Interceptor that will process every request/response in this HttpClient. |
Name | Type | Description |
| string | Address of HTTP endpoint |
|
Name | Type | Description |
| string | Address of HTTP endpoint |
|
Name | Type | Description |
| string | Address of HTTP endpoint |
|
Name | Type | Description |
| string | Address of HTTP endpoint |
|
Name | Type | Description |
| string | Address of HTTP endpoint |
|
Name | Type | Description |
| string | Address of HTTP endpoint |
|
Name | Type |
| string |
|
Name | Type | Default |
| {} |
Name | Type |
|
| undefined | string |
‹T›
Additional passed with request
Additional passed with request
Additional passed with request
Additional passed with request
Additional passed with request
Additional passed with request
IncomingHttpHeaders | | Headers | string
‹T›