new HttpTransportClient(params)
HttpTransport rest client implementation
Parameters:
Name | Type | Description |
---|---|---|
params |
ClientParams | Client parameters |
Methods
(async) delete(uri, opts)
Executes a HTTP DELETE
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | uri to request |
opts |
RequestOptions | optional request configuration |
Returns:
a Promise
(async) get(uri, opts)
Executes a HTTP GET
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | uri to request |
opts |
RequestOptions | optional request configuration |
Returns:
a Promise
(async) head(uri, opts)
Executes a HTTP HEAD
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | uri to request |
opts |
RequestOptions | optional request configuration |
Returns:
a Promise
(async) post(uri, body, opts)
Executes a HTTP POST
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | uri to request |
body |
RequestBody | request body |
opts |
RequestOptions | optional request configuration |
Returns:
a Promise
(async) put(uri, body, opts)
Executes a HTTP PUT
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | uri to request |
body |
RequestBody | request body |
opts |
RequestOptions | optional request configuration |
Returns:
a Promise