struct Protocol::Network::Response

Overview

HTTP response data.

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 alternate_protocol_usage : AlternateProtocolUsage | Nil #

The reason why Chrome uses a specific transport protocol for HTTP semantics.


[View source]
def cache_storage_cache_name : String | Nil #

Cache Storage Cache Name.


[View source]
def connection_id : Number::Primitive #

Physical connection id that was actually used for this request.


[View source]
def connection_reused : Bool #

Specifies whether physical connection was actually reused for this request.


[View source]
def encoded_data_length : Number::Primitive #

Total number of bytes received for this request so far.


[View source]
def from_disk_cache : Bool | Nil #

Specifies that the request was served from the disk cache.


[View source]
def from_prefetch_cache : Bool | Nil #

Specifies that the request was served from the prefetch cache.


[View source]
def from_service_worker : Bool | Nil #

Specifies that the request was served from the ServiceWorker.


[View source]
def headers : Headers #

HTTP response headers.


[View source]
def headers_text : String | Nil #

HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.


[View source]
def mime_type : String #

Resource mimeType as determined by the browser.


[View source]
def protocol : String | Nil #

Protocol used to fetch this request.


[View source]
def remote_ip_address : String | Nil #

Remote IP address.


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

Remote port.


[View source]
def request_headers : Headers | Nil #

Refined HTTP request headers that were actually transmitted over the network.


[View source]
def request_headers_text : String | Nil #

HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.


[View source]
def response_time : TimeSinceEpoch | Nil #

The time at which the returned response was generated.


[View source]
def security_details : SecurityDetails | Nil #

Security details for the request.


[View source]
def security_state : Security::SecurityState #

Security state of the request resource.


[View source]
def service_worker_response_source : ServiceWorkerResponseSource | Nil #

Response source of response from ServiceWorker.


[View source]
def status : Int::Primitive #

HTTP response status code.


[View source]
def status_text : String #

HTTP response status text.


[View source]
def timing : ResourceTiming | Nil #

Timing information for the given request.


[View source]
def url : String #

Response URL. This URL can be different from CachedResource.url in case of redirect.


[View source]