OnAuthRequiredDetails constructor

OnAuthRequiredDetails({
  1. required String requestId,
  2. required String url,
  3. required String method,
  4. required int frameId,
  5. required int parentFrameId,
  6. required String documentId,
  7. String? parentDocumentId,
  8. required DocumentLifecycle documentLifecycle,
  9. required FrameType frameType,
  10. required int tabId,
  11. required ResourceType type,
  12. String? initiator,
  13. required double timeStamp,
  14. required String scheme,
  15. String? realm,
  16. required OnAuthRequiredDetailsChallenger challenger,
  17. required bool isProxy,
  18. List<HttpHeadersItems>? responseHeaders,
  19. required String statusLine,
  20. required int statusCode,
})

Implementation

OnAuthRequiredDetails({
  /// The ID of the request. Request IDs are unique within a browser session.
  /// As a result, they could be used to relate different events of the same
  /// request.
  required String requestId,
  required String url,

  /// 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,

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

  /// The UUID of the document making the request.
  required String documentId,

  /// The UUID of the parent document owning this frame. This is not set if
  /// there is no parent.
  String? parentDocumentId,

  /// The lifecycle the document is in.
  required DocumentLifecycle documentLifecycle,

  /// The type of frame the request occurred in.
  required FrameType frameType,

  /// 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,

  /// How the requested resource will be used.
  required ResourceType type,

  /// 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,

  /// The time when this signal is triggered, in milliseconds since the epoch.
  required double timeStamp,

  /// The authentication scheme, e.g. Basic or Digest.
  required String scheme,

  /// The authentication realm provided by the server, if there is one.
  String? realm,

  /// The server requesting authentication.
  required OnAuthRequiredDetailsChallenger challenger,

  /// True for Proxy-Authenticate, false for WWW-Authenticate.
  required bool isProxy,

  /// The HTTP response headers that were received along with this response.
  List<HttpHeadersItems>? responseHeaders,

  /// HTTP status line of the response or the 'HTTP/0.9 200 OK' string for
  /// HTTP/0.9 responses (i.e., responses that lack a status line) or an empty
  /// string if there are no headers.
  required String statusLine,

  /// Standard HTTP status code returned by the server.
  required int statusCode,
}) : _wrapped = $js.OnAuthRequiredDetails(
        requestId: requestId,
        url: url,
        method: method,
        frameId: frameId,
        parentFrameId: parentFrameId,
        documentId: documentId,
        parentDocumentId: parentDocumentId,
        documentLifecycle: documentLifecycle.toJS,
        frameType: frameType.toJS,
        tabId: tabId,
        type: type.toJS,
        initiator: initiator,
        timeStamp: timeStamp,
        scheme: scheme,
        realm: realm,
        challenger: challenger.toJS,
        isProxy: isProxy,
        responseHeaders: responseHeaders?.toJSArray((e) => e.toJS),
        statusLine: statusLine,
        statusCode: statusCode,
      );