struct Protocol::Network::RequestWillBeSent
- Protocol::Network::RequestWillBeSent
- Struct
- Value
- Object
Overview
Fired when page is about to send HTTP request.
Included Modules
- JSON::Serializable
- Protocol::Event
Defined in:
protocol/network.crConstructors
Instance Method Summary
-
#document_url : String
URL of the document this request is loaded for.
-
#frame_id : Page::FrameId | Nil
Frame identifier.
-
#has_user_gesture : Bool | Nil
Whether the request is initiated by a user gesture.
-
#initiator : Initiator
Request initiator.
-
#loader_id : LoaderId
Loader identifier.
-
#redirect_has_extra_info : Bool
In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.
-
#redirect_response : Response | Nil
Redirect response data.
-
#request : Request
Request data.
-
#request_id : RequestId
Request identifier.
-
#timestamp : MonotonicTime
Timestamp.
-
#type : ResourceType | Nil
Type of this resource.
-
#wall_time : TimeSinceEpoch
Timestamp.
Constructor Detail
Instance Method Detail
Whether the request is initiated by a user gesture. Defaults to false.
Loader identifier. Empty string if the request is fetched from worker.
In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.