class Request

Alias for webdriver.http.Request

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

new Request(method, path, opt_data)

Parameters
methodstring

The HTTP method to use for the request.

pathstring

Path on the server to send the request to.

opt_data?Object=

This request's JSON data.

Instance Methods

toString()code ยป

Returns
string

Instance Properties

dataObject

This request's body.

headersObject<?, (string|number)>

The headers to send with the request.

methodstring

The HTTP method to use for the request.

pathstring

The path on the server to send the request to.