Converts the header array in ApiClientRequest to compatible JSON object.
header object to pass into HTTP client
function creating an AskSdk error.
Dispatches a request to an API endpoint described in the request. An ApiClient is expected to resolve the Promise in the case an API returns a non-200 HTTP status code. The responsibility of translating a particular response code to an error lies with the caller to invoke.
request to dispatch to the ApiClient
response from the ApiClient
Converts JSON header object to header array required for {ApiClientResponse}
JSON header object returned by HTTP client
[]}
Default implementation of ApiClient which uses the native HTTP/HTTPS library of Node.JS.