TestMatchRequestDetails class

Constructors

TestMatchRequestDetails({required String url, String? initiator, RequestMethod? method, required ResourceType type, int? tabId, String? topUrl, Map? responseHeaders})
TestMatchRequestDetails.fromJS(TestMatchRequestDetails _wrapped)

Properties

hashCode → int
The hash code for this object.
no setterinherited
initiator ↔ String?
The initiator URL (if any) for the hypothetical request.
getter/setter pair
method ↔ RequestMethod?
Standard HTTP method of the hypothetical request. Defaults to "get" for HTTP requests and is ignored for non-HTTP requests.
getter/setter pair
responseHeaders ↔ Map?
The headers provided by a hypothetical response if the request does not get blocked or redirected before it is sent. Represented as an object which maps a header name to a list of string values. If not specified, the hypothetical response would return empty response headers, which can match rules which match on the non-existence of headers. E.g. {"content-type": ["text/html; charset=utf-8", "multipart/form-data"]}
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tabId ↔ int?
The ID of the tab in which the hypothetical request takes place. Does not need to correspond to a real tab ID. Default is -1, meaning that the request isn't related to a tab.
getter/setter pair
toJS → TestMatchRequestDetails
no setter
topUrl ↔ String?
The associated top-level frame URL (if any) for the request.
getter/setter pair
type ↔ ResourceType
The resource type of the hypothetical request.
getter/setter pair
url ↔ String
The URL of the hypothetical request.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited