Class RouteFallbackOptions
- Namespace
- Microsoft.Playwright
- Assembly
- Microsoft.Playwright.dll
public class RouteFallbackOptions
- Inheritance
-
RouteFallbackOptions
- Inherited Members
Constructors
RouteFallbackOptions()
public RouteFallbackOptions()
RouteFallbackOptions(RouteFallbackOptions)
public RouteFallbackOptions(RouteFallbackOptions clone)
Parameters
clone
RouteFallbackOptions
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
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[]
Url
If set changes the request URL. New URL must have same protocol as original one. Changing the URL won't affect the route matching, all the routes are matched using the original request URL.
[JsonPropertyName("url")]
public string? Url { get; set; }