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
url: Cow<'a, str>
Response URL. This URL can be different from CachedResource.url in case of redirect.
status: f64
HTTP response status code.
status_text: Cow<'a, str>
HTTP response status text.
headers: Headers
HTTP response headers.
headers_text: Option<Cow<'a, str>>
HTTP response headers text.
mime_type: Cow<'a, str>
Resource mimeType as determined by the browser.
request_headers: Option<Headers>
Refined HTTP request headers that were actually transmitted over the network.
request_headers_text: Option<Cow<'a, str>>
HTTP request headers text.
connection_reused: bool
Specifies whether physical connection was actually reused for this request.
connection_id: f64
Physical connection id that was actually used for this request.
remote_ip_address: Option<Cow<'a, str>>
[Experimental] Remote IP address.
remote_port: Option<i32>
[Experimental] Remote port.
from_disk_cache: Option<bool>
Specifies that the request was served from the disk cache.
from_service_worker: Option<bool>
Specifies that the request was served from the ServiceWorker.
encoded_data_length: f64
Total number of bytes received for this request so far.
timing: Option<ResourceTiming>
Timing information for the given request.
protocol: Option<Cow<'a, str>>
Protocol used to fetch this request.
security_state: SecurityState
Security state of the request resource.
security_details: Option<SecurityDetails<'a>>
Security details for the request.
Trait Implementations
impl<'a> Clone for Response<'a>
[src]
fn clone(&self) -> Response<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more