Struct chrome_remote_interface_model::network::ResponseBuilder [−][src]
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]
&mut self,
v: ServiceWorkerResponseSource
) -> &mut Self
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]
fn clone(&self) -> ResponseBuilder[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ResponseBuilder[src]
impl Default for ResponseBuilder[src]
Auto Trait Implementations
impl RefUnwindSafe for ResponseBuilder[src]
impl Send for ResponseBuilder[src]
impl Sync for ResponseBuilder[src]
impl Unpin for ResponseBuilder[src]
impl UnwindSafe for ResponseBuilder[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,