Table of Contents

Class ContinueRequestCommandParameters

Namespace
WebDriverBiDi.Network
Assembly
WebDriverBiDi.dll

Provides parameters for the network.continueRequest command.

public class ContinueRequestCommandParameters : CommandParameters<ContinueRequestCommandResult>
Inheritance
ContinueRequestCommandParameters
Inherited Members

Constructors

ContinueRequestCommandParameters(string)

Initializes a new instance of the ContinueRequestCommandParameters class.

public ContinueRequestCommandParameters(string requestId)

Parameters

requestId string

The ID of the request to continue.

Properties

Body

Gets or sets the body of the request.

[JsonPropertyName("body")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public BytesValue? Body { get; set; }

Property Value

BytesValue

Cookies

Gets or sets the cookie headers of the request.

[JsonPropertyName("cookies")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<CookieHeader>? Cookies { get; set; }

Property Value

List<CookieHeader>

Remarks

This is one of the few list properties on a CommandParameters type that is nullable and settable, because the protocol gives a present-but-empty array its own meaning. When network.continueRequest is given a cookies field, the remote end starts from an empty cookie header and appends an entry for each element, replacing whatever the intercepted request carried. Sending [] therefore removes the request's cookies, while omitting the field leaves them untouched.

When null, the property is not included in the command; when an empty list, an empty array is sent to the remote end. Every other list property is read-only and is omitted while empty.

Headers

Gets or sets the headers of the request.

[JsonPropertyName("headers")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<Header>? Headers { get; set; }

Property Value

List<Header>

Remarks

This is one of the few list properties on a CommandParameters type that is nullable and settable, because the protocol gives a present-but-empty array its own meaning. When network.continueRequest is given a headers field, the remote end starts from an empty header list and appends an entry for each element, replacing whatever the intercepted request carried. Sending [] therefore removes the request's headers, while omitting the field leaves them untouched.

When null, the property is not included in the command; when an empty list, an empty array is sent to the remote end. Every other list property is read-only and is omitted while empty.

Method

Gets or sets the HTTP method of the request.

[JsonPropertyName("method")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Method { get; set; }

Property Value

string

MethodName

Gets the method name of the command.

[JsonIgnore]
public override string MethodName { get; }

Property Value

string

RequestId

Gets or sets the ID of the request to continue.

[JsonPropertyName("request")]
public string RequestId { get; set; }

Property Value

string

Url

Gets or sets the URL of the request.

[JsonPropertyName("url")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Url { get; set; }

Property Value

string