Client

Handles sending HTTP messages to a remote end.

Methods

send(httpRequestnon-null) → (non-null) {Promise.<Response>}

Sends a request to the server. The client will automatically follow any redirects returned by the server, fulfilling the returned promise with the final response.

Parameters:
NameTypeDescription
httpRequestRequest

The request to send.

Returns:

A promise that will be fulfilled with the server's response.

Type: 
Promise.<Response>