Struct chrome_remote_interface_model::network::Response[][src]

pub struct Response { /* fields omitted */ }
This is supported on crate features Network and Debugger and Runtime and Security only.

HTTP response data.

Implementations

impl Response[src]

pub fn builder() -> ResponseBuilder[src]

pub fn url(&self) -> &str[src]

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

pub fn status(&self) -> u32[src]

HTTP response status code.

pub fn status_text(&self) -> &str[src]

HTTP response status text.

pub fn headers(&self) -> &Headers[src]

HTTP response headers.

pub fn headers_text(&self) -> Option<&String>[src]

HTTP response headers text.

pub fn mime_type(&self) -> &str[src]

Resource mimeType as determined by the browser.

pub fn request_headers(&self) -> Option<&Headers>[src]

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

pub fn request_headers_text(&self) -> Option<&String>[src]

HTTP request headers text.

pub fn connection_reused(&self) -> bool[src]

Specifies whether physical connection was actually reused for this request.

pub fn connection_id(&self) -> f64[src]

Physical connection id that was actually used for this request.

pub fn remote_ip_address(&self) -> Option<&String>[src]

Remote IP address.

pub fn remote_port(&self) -> Option<&u32>[src]

Remote port.

pub fn from_disk_cache(&self) -> Option<&bool>[src]

Specifies that the request was served from the disk cache.

pub fn from_service_worker(&self) -> Option<&bool>[src]

Specifies that the request was served from the ServiceWorker.

pub fn from_prefetch_cache(&self) -> Option<&bool>[src]

Specifies that the request was served from the prefetch cache.

pub fn encoded_data_length(&self) -> f64[src]

Total number of bytes received for this request so far.

pub fn timing(&self) -> Option<&ResourceTiming>[src]

Timing information for the given request.

pub fn service_worker_response_source(
    &self
) -> Option<&ServiceWorkerResponseSource>
[src]

Response source of response from ServiceWorker.

pub fn response_time(&self) -> Option<&TimeSinceEpoch>[src]

The time at which the returned response was generated.

pub fn cache_storage_cache_name(&self) -> Option<&String>[src]

Cache Storage Cache Name.

pub fn protocol(&self) -> Option<&String>[src]

Protocol used to fetch this request.

pub fn security_state(&self) -> &SecurityState[src]

Security state of the request resource.

pub fn security_details(&self) -> Option<&SecurityDetails>[src]

Security details for the request.

Trait Implementations

impl Clone for Response[src]

impl Debug for Response[src]

impl<'de> Deserialize<'de> for Response[src]

impl Serialize for Response[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.