RequestDetails constructor

RequestDetails({
  1. required String requestId,
  2. required String url,
  3. String? initiator,
  4. required String method,
  5. required int frameId,
  6. String? documentId,
  7. FrameType? frameType,
  8. DocumentLifecycle? documentLifecycle,
  9. required int parentFrameId,
  10. String? parentDocumentId,
  11. required int tabId,
  12. required ResourceType type,
})

Implementation

RequestDetails({
  /// The ID of the request. Request IDs are unique within a browser session.
  required String requestId,

  /// The URL of the request.
  required String url,

  /// The origin where the request was initiated. This does not change through
  /// redirects. If this is an opaque origin, the string 'null' will be used.
  String? initiator,

  /// Standard HTTP method.
  required String method,

  /// The value 0 indicates that the request happens in the main frame; a
  /// positive value indicates the ID of a subframe in which the request
  /// happens. If the document of a (sub-)frame is loaded (`type` is
  /// `main_frame` or `sub_frame`), `frameId`
  /// indicates the ID of this frame, not the ID of the outer frame. Frame IDs
  /// are unique within a tab.
  required int frameId,

  /// The unique identifier for the frame's document, if this request is for a
  /// frame.
  String? documentId,

  /// The type of the frame, if this request is for a frame.
  FrameType? frameType,

  /// The lifecycle of the frame's document, if this request is for a
  /// frame.
  DocumentLifecycle? documentLifecycle,

  /// ID of frame that wraps the frame which sent the request. Set to -1 if no
  /// parent frame exists.
  required int parentFrameId,

  /// The unique identifier for the frame's parent document, if this request
  /// is for a frame and has a parent.
  String? parentDocumentId,

  /// The ID of the tab in which the request takes place. Set to -1 if the
  /// request isn't related to a tab.
  required int tabId,

  /// The resource type of the request.
  required ResourceType type,
}) : _wrapped = $js.RequestDetails(
        requestId: requestId,
        url: url,
        initiator: initiator,
        method: method,
        frameId: frameId,
        documentId: documentId,
        frameType: frameType?.toJS,
        documentLifecycle: documentLifecycle?.toJS,
        parentFrameId: parentFrameId,
        parentDocumentId: parentDocumentId,
        tabId: tabId,
        type: type.toJS,
      );