struct Protocol::Network::Request
- Protocol::Network::Request
- Struct
- Value
- Object
Overview
HTTP request data.
Included Modules
- JSON::Serializable
Defined in:
protocol/network.crConstructors
Instance Method Summary
-
#has_post_data : Bool | Nil
True when the request has POST data.
-
#headers : Headers
HTTP request headers.
-
#initial_priority : ResourcePriority
Priority of the resource request at the time request is sent.
-
#is_link_preload : Bool | Nil
Whether is loaded via link preload.
-
#is_same_site : Bool | Nil
True if this resource request is considered to be the 'same site' as the request correspondinfg to the main frame.
-
#method : String
HTTP request method.
-
#mixed_content_type : Security::MixedContentType | Nil
The mixed content type of the request.
-
#post_data : String | Nil
HTTP POST request data.
-
#post_data_entries : Array(PostDataEntry) | Nil
Request body elements.
-
#referrer_policy : String
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
-
#trust_token_params : TrustTokenParams | Nil
Set for requests when the TrustToken API is used.
-
#url : String
Request URL (without fragment).
-
#url_fragment : String | Nil
Fragment of the requested URL starting with hash, if present.
Constructor Detail
Instance Method Detail
True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
Priority of the resource request at the time request is sent.
True if this resource request is considered to be the 'same site' as the request correspondinfg to the main frame.
Request body elements. This will be converted from base64 to binary
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via "fetch") as understood by the backend.