Class RouteFetchOptions
- Namespace
- Microsoft.Playwright
- Assembly
- Microsoft.Playwright.dll
public class RouteFetchOptions
- Inheritance
-
RouteFetchOptions
- Inherited Members
Constructors
RouteFetchOptions()
public RouteFetchOptions()
RouteFetchOptions(RouteFetchOptions)
public RouteFetchOptions(RouteFetchOptions clone)
Parameters
clone
RouteFetchOptions
Properties
Headers
If set changes the request HTTP headers. Header values will be converted to a string.
[JsonPropertyName("headers")]
public IEnumerable<KeyValuePair<string, string>>? Headers { get; set; }
Property Value
MaxRedirects
Maximum number of request redirects that will be followed automatically. An error
will be thrown if the number is exceeded. Defaults to 20
. Pass 0
to
not follow redirects.
[JsonPropertyName("maxRedirects")]
public int? MaxRedirects { get; set; }
Property Value
- int?
Method
If set changes the request method (e.g. GET or POST).
[JsonPropertyName("method")]
public string? Method { get; set; }
Property Value
PostData
If set changes the post data of request.
[JsonPropertyName("postData")]
public byte[]? PostData { get; set; }
Property Value
- byte[]
Timeout
Request timeout in milliseconds. Defaults to 30000
(30 seconds). Pass 0
to disable timeout.
[JsonPropertyName("timeout")]
public float? Timeout { get; set; }
Property Value
Url
If set changes the request URL. New URL must have same protocol as original one.
[JsonPropertyName("url")]
public string? Url { get; set; }