Typedef
Static Public Summary | ||
public |
|
|
public |
Tuple: [key: string, value: string] |
Static Public
public HttpRequestParams: Object source
Properties:
Name | Type | Attribute | Description |
url | string | resource url |
|
method | string | HTTP method, |
|
headers | Tuple[] | array of HTTP headers key-value pairs |
|
body | Object | request payload |
|
responseType | string | response type |
|
dynamicSegments | Tuple[] | key-value array of replacements for the provided url |
|
queryParams | Tuple[] | key-value array of url params |
|
bodyProcessor | function(x: Object): Object | map body function |
|
responseProcessor | function(x: Object): Object | map response function |
|
executor | function(url: string, method: string, headers: string[], responseType: string, body: Object): Promise | performs HTTP request and returns Promise, |