Struct chrome_remote_interface_model::network::ResponseBuilder[][src]

pub struct ResponseBuilder { /* fields omitted */ }

Implementations

impl ResponseBuilder[src]

pub fn url(&mut self, v: String) -> &mut Self[src]

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

pub fn status(&mut self, v: u32) -> &mut Self[src]

HTTP response status code.

pub fn status_text(&mut self, v: String) -> &mut Self[src]

HTTP response status text.

pub fn headers(&mut self, v: Headers) -> &mut Self[src]

HTTP response headers.

pub fn headers_text(&mut self, v: String) -> &mut Self[src]

HTTP response headers text.

pub fn mime_type(&mut self, v: String) -> &mut Self[src]

Resource mimeType as determined by the browser.

pub fn request_headers(&mut self, v: Headers) -> &mut Self[src]

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

pub fn request_headers_text(&mut self, v: String) -> &mut Self[src]

HTTP request headers text.

pub fn connection_reused(&mut self, v: bool) -> &mut Self[src]

Specifies whether physical connection was actually reused for this request.

pub fn connection_id(&mut self, v: f64) -> &mut Self[src]

Physical connection id that was actually used for this request.

pub fn remote_ip_address(&mut self, v: String) -> &mut Self[src]

Remote IP address.

pub fn remote_port(&mut self, v: u32) -> &mut Self[src]

Remote port.

pub fn from_disk_cache(&mut self, v: bool) -> &mut Self[src]

Specifies that the request was served from the disk cache.

pub fn from_service_worker(&mut self, v: bool) -> &mut Self[src]

Specifies that the request was served from the ServiceWorker.

pub fn from_prefetch_cache(&mut self, v: bool) -> &mut Self[src]

Specifies that the request was served from the prefetch cache.

pub fn encoded_data_length(&mut self, v: f64) -> &mut Self[src]

Total number of bytes received for this request so far.

pub fn timing(&mut self, v: ResourceTiming) -> &mut Self[src]

Timing information for the given request.

pub fn service_worker_response_source(
    &mut self,
    v: ServiceWorkerResponseSource
) -> &mut Self
[src]

Response source of response from ServiceWorker.

pub fn response_time(&mut self, v: TimeSinceEpoch) -> &mut Self[src]

The time at which the returned response was generated.

pub fn cache_storage_cache_name(&mut self, v: String) -> &mut Self[src]

Cache Storage Cache Name.

pub fn protocol(&mut self, v: String) -> &mut Self[src]

Protocol used to fetch this request.

pub fn security_state(&mut self, v: SecurityState) -> &mut Self[src]

Security state of the request resource.

pub fn security_details(&mut self, v: SecurityDetails) -> &mut Self[src]

Security details for the request.

pub fn build(&mut self) -> Result<Response, &'static str>[src]

Trait Implementations

impl Clone for ResponseBuilder[src]

impl Debug for ResponseBuilder[src]

impl Default for ResponseBuilder[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> 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.