HttpTransportClient

HttpTransportClient

new HttpTransportClient(params)

Source:
See:
  • ClientParams

HttpTransport rest client implementation

Parameters:
Name Type Description
params ClientParams

Client parameters

Methods

(async) delete(uri, opts)

Source:

Executes a HTTP DELETE

Parameters:
Name Type Description
uri string

uri to request

opts RequestOptions

optional request configuration

Returns:

a Promise instance

(async) get(uri, opts)

Source:

Executes a HTTP GET

Parameters:
Name Type Description
uri string

uri to request

opts RequestOptions

optional request configuration

Returns:

a Promise instance

Source:

Executes a HTTP HEAD

Parameters:
Name Type Description
uri string

uri to request

opts RequestOptions

optional request configuration

Returns:

a Promise instance

(async) post(uri, body, opts)

Source:

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 instance

(async) put(uri, body, opts)

Source:

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 instance