ContinueRequestParameters

Represents the parameters for a continue request command. Described in https://w3c.github.io/webdriver-bidi/#command-network-continueRequest.

Constructor

new ContinueRequestParameters()

Methods

body(value) → {ContinueRequestParameters}

Sets the body value for the request.

Parameters:
NameTypeDescription
valueBytesValue

The value to set as the body. Must be an instance of BytesValue.

Throws:
  • If the value is not an instance of BytesValue.
Type
Error
Returns:
  • The current instance of the ContinueRequestParameters for chaining.
Type: 
ContinueRequestParameters

cookies(cookieHeaders) → {continueRequestParameters}

Sets the cookies for the request.

Parameters:
NameTypeDescription
cookieHeadersArray.<Header>

An array of cookie headers.

Throws:
  • If a cookie header is not an instance of Header.
Type
Error
Returns:
  • The current instance of the ContinueRequestParameters for chaining.
Type: 
continueRequestParameters

headers(headers) → {ContinueRequestParameters}

Sets the headers for the request.

Parameters:
NameTypeDescription
headersArray.<Header>

An array of Header objects.

Throws:
  • If the header value is not an instance of Header.
Type
Error
Returns:
  • The current instance of the ContinueRequestParameters for chaining.
Type: 
ContinueRequestParameters

method(method) → {ContinueRequestParameters}

Sets the HTTP method for the request.

Parameters:
NameTypeDescription
methodstring

The HTTP method to be set.

Throws:
  • If the method parameter is not a string.
Type
Error
Returns:
  • The updated continueRequestParameters object.
Type: 
ContinueRequestParameters

url(url) → {ContinueRequestParameters}

Sets the URL for the request.

Parameters:
NameTypeDescription
urlstring

The URL to set for the request.

Throws:
  • If the url parameter is not a string.
Type
Error
Returns:
  • The current instance of the ContinueRequestParameters for chaining.
Type: 
ContinueRequestParameters