struct Protocol::Fetch::RequestPaused

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

Defined in:

protocol/fetch.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def frame_id : Page::FrameId #

The id of the frame that initiated the request.


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


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


[View source]
def request : Network::Request #

The details of the request.


[View source]
def request_id : RequestId #

Each request the page makes will have a unique id.


[View source]
def resource_type : Network::ResourceType #

How the requested resource will be used.


[View source]
def response_error_reason : Network::ErrorReason | Nil #

Response error if intercepted at response stage.


[View source]
def response_headers : Array(HeaderEntry) | Nil #

Response headers if intercepted at the response stage.


[View source]
def response_status_code : Int::Primitive | Nil #

Response code if intercepted at response stage.


[View source]
def response_status_text : String | Nil #

Response status text if intercepted at response stage.


[View source]