pub struct ResponseBuilder { /* private fields */ }Network and Debugger and Runtime and Security only.Implementations§
Source§impl ResponseBuilder
impl ResponseBuilder
Sourcepub fn url(&mut self, v: String) -> &mut Self
pub fn url(&mut self, v: String) -> &mut Self
Response URL. This URL can be different from CachedResource.url in case of redirect.
Sourcepub fn status_text(&mut self, v: String) -> &mut Self
pub fn status_text(&mut self, v: String) -> &mut Self
HTTP response status text.
Sourcepub fn headers_text(&mut self, v: String) -> &mut Self
pub fn headers_text(&mut self, v: String) -> &mut Self
HTTP response headers text.
Sourcepub fn mime_type(&mut self, v: String) -> &mut Self
pub fn mime_type(&mut self, v: String) -> &mut Self
Resource mimeType as determined by the browser.
Sourcepub fn request_headers(&mut self, v: Headers) -> &mut Self
pub fn request_headers(&mut self, v: Headers) -> &mut Self
Refined HTTP request headers that were actually transmitted over the network.
Sourcepub fn request_headers_text(&mut self, v: String) -> &mut Self
pub fn request_headers_text(&mut self, v: String) -> &mut Self
HTTP request headers text.
Sourcepub fn connection_reused(&mut self, v: bool) -> &mut Self
pub fn connection_reused(&mut self, v: bool) -> &mut Self
Specifies whether physical connection was actually reused for this request.
Sourcepub fn connection_id(&mut self, v: f64) -> &mut Self
pub fn connection_id(&mut self, v: f64) -> &mut Self
Physical connection id that was actually used for this request.
Sourcepub fn remote_ip_address(&mut self, v: String) -> &mut Self
pub fn remote_ip_address(&mut self, v: String) -> &mut Self
Remote IP address.
Sourcepub fn remote_port(&mut self, v: u32) -> &mut Self
pub fn remote_port(&mut self, v: u32) -> &mut Self
Remote port.
Sourcepub fn from_disk_cache(&mut self, v: bool) -> &mut Self
pub fn from_disk_cache(&mut self, v: bool) -> &mut Self
Specifies that the request was served from the disk cache.
Sourcepub fn from_service_worker(&mut self, v: bool) -> &mut Self
pub fn from_service_worker(&mut self, v: bool) -> &mut Self
Specifies that the request was served from the ServiceWorker.
Sourcepub fn from_prefetch_cache(&mut self, v: bool) -> &mut Self
pub fn from_prefetch_cache(&mut self, v: bool) -> &mut Self
Specifies that the request was served from the prefetch cache.
Sourcepub fn encoded_data_length(&mut self, v: f64) -> &mut Self
pub fn encoded_data_length(&mut self, v: f64) -> &mut Self
Total number of bytes received for this request so far.
Sourcepub fn timing(&mut self, v: ResourceTiming) -> &mut Self
pub fn timing(&mut self, v: ResourceTiming) -> &mut Self
Timing information for the given request.
Sourcepub fn service_worker_response_source(
&mut self,
v: ServiceWorkerResponseSource,
) -> &mut Self
pub fn service_worker_response_source( &mut self, v: ServiceWorkerResponseSource, ) -> &mut Self
Response source of response from ServiceWorker.
Sourcepub fn response_time(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn response_time(&mut self, v: TimeSinceEpoch) -> &mut Self
The time at which the returned response was generated.
Sourcepub fn cache_storage_cache_name(&mut self, v: String) -> &mut Self
pub fn cache_storage_cache_name(&mut self, v: String) -> &mut Self
Cache Storage Cache Name.
Sourcepub fn security_state(&mut self, v: SecurityState) -> &mut Self
pub fn security_state(&mut self, v: SecurityState) -> &mut Self
Security state of the request resource.
Sourcepub fn security_details(&mut self, v: SecurityDetails) -> &mut Self
pub fn security_details(&mut self, v: SecurityDetails) -> &mut Self
Security details for the request.
pub fn build(&mut self) -> Result<Response, &'static str>
Trait Implementations§
Source§impl Clone for ResponseBuilder
impl Clone for ResponseBuilder
Source§fn clone(&self) -> ResponseBuilder
fn clone(&self) -> ResponseBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more