struct Protocol::Network::RequestWillBeSent

Overview

Fired when page is about to send HTTP request.

Included Modules

Defined in:

protocol/network.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def document_url : String #

URL of the document this request is loaded for.


[View source]
def frame_id : Page::FrameId | Nil #

Frame identifier.


[View source]
def has_user_gesture : Bool | Nil #

Whether the request is initiated by a user gesture. Defaults to false.


[View source]
def initiator : Initiator #

Request initiator.


[View source]
def loader_id : LoaderId #

Loader identifier. Empty string if the request is fetched from worker.


[View source]
def 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.


[View source]
def redirect_response : Response | Nil #

Redirect response data.


[View source]
def request : Request #

Request data.


[View source]
def request_id : RequestId #

Request identifier.


[View source]
def timestamp : MonotonicTime #

Timestamp.


[View source]
def type : ResourceType | Nil #

Type of this resource.


[View source]
def wall_time : TimeSinceEpoch #

Timestamp.


[View source]