Request

Represents a HTTP request message. This class is a "partial" request and only defines the path on the server to send a request to. It is each client's responsibility to build the full URL for the final request.

Constructor

new Request(method, path, opt_dataopt)

Parameters:
NameTypeAttributesDescription
methodstring

The HTTP method to use for the request.

pathstring

The path on the server to send the request to.

opt_dataObject<optional>

This request's non-serialized JSON payload data.

Methods

toString()