TestMatchRequestDetails constructor

TestMatchRequestDetails({
  1. required String url,
  2. String? initiator,
  3. RequestMethod? method,
  4. required ResourceType type,
  5. int? tabId,
})

Implementation

TestMatchRequestDetails({
  /// The URL of the hypothetical request.
  required String url,

  /// The initiator URL (if any) for the hypothetical request.
  String? initiator,

  /// Standard HTTP method of the hypothetical request. Defaults to "get" for
  /// HTTP requests and is ignored for non-HTTP requests.
  RequestMethod? method,

  /// The resource type of the hypothetical request.
  required ResourceType type,

  /// 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.
  int? tabId,
}) : _wrapped = $js.TestMatchRequestDetails(
        url: url,
        initiator: initiator,
        method: method?.toJS,
        type: type.toJS,
        tabId: tabId,
      );