ContinueResponseParameters

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

Constructor

new ContinueResponseParameters()

Methods

cookies(cookieHeaders) → {ContinueResponseParameters}

Sets the cookies for the response.

Parameters:
NameTypeDescription
cookieHeadersArray.<Header>

The array of cookie headers.

Throws:
  • If the cookieHeader is not an instance of Header.
Type
Error
Returns:
  • The current instance of the ContinueResponseParameters for chaining.
Type: 
ContinueResponseParameters

credentials(username, password) → {ContinueResponseParameters}

Sets the credentials for authentication.

Parameters:
NameTypeDescription
usernamestring

The username for authentication.

passwordstring

The password for authentication.

Throws:

If username or password is not a string.

Type
Error
Returns:

The current instance of the ContinueResponseParameters for chaining.

Type: 
ContinueResponseParameters

headers(headers) → {ContinueResponseParameters}

Sets the headers for the response.

Parameters:
NameTypeDescription
headersArray.<Header>

An array of Header objects representing the headers.

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

reasonPhrase(reasonPhrase) → {ContinueResponseParameters}

Sets the reason phrase for the response.

Parameters:
NameTypeDescription
reasonPhrasestring

The reason phrase for the response.

Throws:
  • If the reason phrase is not a string.
Type
Error
Returns:
  • The current instance of the ContinueResponseParameters for chaining.
Type: 
ContinueResponseParameters

statusCode(statusCode) → {ContinueResponseParameters}

Sets the status code for the response.

Parameters:
NameTypeDescription
statusCodenumber

The status code to set.

Throws:
  • If the statusCode parameter is not an integer.
Type
Error
Returns:
  • The current instance of the ContinueResponseParameters for chaining.
Type: 
ContinueResponseParameters