Class: HttpClient

HttpClient#HttpClient(optsopt)

new HttpClient(optsopt)

Constructor.
Parameters:
Name Type Attributes Description
opts object <optional>
options
Properties
Name Type Attributes Description
baseURL string <optional>
base URL (default empty).
headers object <optional>
custom headers
bodyType string <optional>
post/put type `form` | `json`
Source:

HttpClient#HttpClient(optsopt)

new HttpClient(optsopt)

Constructor.
Parameters:
Name Type Attributes Description
opts object <optional>
options
Properties
Name Type Attributes Description
baseURL string <optional>
base URL (default empty).
headers object <optional>
custom headers
bodyType string <optional>
post/put type `form` | `json`
Source: