struct Protocol::Fetch::RequestPaused
- Protocol::Fetch::RequestPaused
- Struct
- Value
- Object
Overview
Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise.
Included Modules
- JSON::Serializable
- Protocol::Event
Defined in:
protocol/fetch.crConstructors
Instance Method Summary
-
#frame_id : Page::FrameId
The id of the frame that initiated the request.
-
#network_id : Network::RequestId | Nil
If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.
-
#redirected_request_id : RequestId | Nil
If the request is due to a redirect response from the server, the id of the request that has caused the redirect.
-
#request : Network::Request
The details of the request.
-
#request_id : RequestId
Each request the page makes will have a unique id.
-
#resource_type : Network::ResourceType
How the requested resource will be used.
-
#response_error_reason : Network::ErrorReason | Nil
Response error if intercepted at response stage.
-
#response_headers : Array(HeaderEntry) | Nil
Response headers if intercepted at the response stage.
-
#response_status_code : Int::Primitive | Nil
Response code if intercepted at response stage.
-
#response_status_text : String | Nil
Response status text if intercepted at response stage.
Constructor Detail
Instance Method Detail
If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.
If the request is due to a redirect response from the server, the id of the request that has caused the redirect.
Response error if intercepted at response stage.
Response headers if intercepted at the response stage.