Class BrowserContextRouteFromHAROptions
- Namespace
- Microsoft.Playwright
- Assembly
- Microsoft.Playwright.dll
public class BrowserContextRouteFromHAROptions
- Inheritance
-
BrowserContextRouteFromHAROptions
- Inherited Members
Constructors
BrowserContextRouteFromHAROptions()
public BrowserContextRouteFromHAROptions()
BrowserContextRouteFromHAROptions(BrowserContextRouteFromHAROptions)
public BrowserContextRouteFromHAROptions(BrowserContextRouteFromHAROptions clone)
Parameters
Properties
NotFound
- If set to 'abort' any request not found in the HAR file will be aborted.
- If set to 'fallback' falls through to the next route handler in the handler chain.
Defaults to abort.
[JsonPropertyName("notFound")]
public HarNotFound? NotFound { get; set; }
Property Value
Update
If specified, updates the given HAR with the actual network information instead of serving from file. The file is written to disk when CloseAsync(BrowserContextCloseOptions?) is called.
[JsonPropertyName("update")]
public bool? Update { get; set; }
Property Value
- bool?
UpdateContent
Optional setting to control resource content management. If attach
is specified,
resources are persisted as separate files or entries in the ZIP archive. If embed
is specified, content is stored inline the HAR file.
[JsonPropertyName("updateContent")]
public RouteFromHarUpdateContentPolicy? UpdateContent { get; set; }
Property Value
UpdateMode
When set to minimal
, only record information necessary for routing from HAR.
This omits sizes, timing, page, cookies, security and other types of HAR information
that are not used when replaying from HAR. Defaults to minimal
.
[JsonPropertyName("updateMode")]
public HarMode? UpdateMode { get; set; }
Property Value
Url
A glob pattern, regular expression or predicate to match the request URL. Only requests with URL matching the pattern will be served from the HAR file. If not specified, all requests are served from the HAR file.
[JsonPropertyName("url")]
public string? Url { get; set; }
Property Value
UrlRegex
A glob pattern, regular expression or predicate to match the request URL. Only requests with URL matching the pattern will be served from the HAR file. If not specified, all requests are served from the HAR file.
[JsonPropertyName("urlRegex")]
public Regex? UrlRegex { get; set; }
Property Value
UrlString
A glob pattern, regular expression or predicate to match the request URL. Only requests with URL matching the pattern will be served from the HAR file. If not specified, all requests are served from the HAR file.
[JsonPropertyName("urlString")]
public string? UrlString { get; set; }