Struct cdp::network::Response [] [src]

pub struct Response<'a> {
    pub url: Cow<'a, str>,
    pub status: f64,
    pub status_text: Cow<'a, str>,
    pub headers: Headers,
    pub headers_text: Option<Cow<'a, str>>,
    pub mime_type: Cow<'a, str>,
    pub request_headers: Option<Headers>,
    pub request_headers_text: Option<Cow<'a, str>>,
    pub connection_reused: bool,
    pub connection_id: f64,
    pub remote_ip_address: Option<Cow<'a, str>>,
    pub remote_port: Option<i32>,
    pub from_disk_cache: Option<bool>,
    pub from_service_worker: Option<bool>,
    pub encoded_data_length: f64,
    pub timing: Option<ResourceTiming>,
    pub protocol: Option<Cow<'a, str>>,
    pub security_state: SecurityState,
    pub security_details: Option<SecurityDetails<'a>>,
}

HTTP response data.

Fields

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

HTTP response status code.

HTTP response status text.

HTTP response headers.

HTTP response headers text.

Resource mimeType as determined by the browser.

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

HTTP request headers text.

Specifies whether physical connection was actually reused for this request.

Physical connection id that was actually used for this request.

[Experimental] Remote IP address.

[Experimental] Remote port.

Specifies that the request was served from the disk cache.

Specifies that the request was served from the ServiceWorker.

Total number of bytes received for this request so far.

Timing information for the given request.

Protocol used to fetch this request.

Security state of the request resource.

Security details for the request.

Trait Implementations

impl<'a> Clone for Response<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for Response<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for Response<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.