pub struct Response {Show 17 fields
pub url: String,
pub status: u32,
pub status_text: String,
pub headers: HashMap<String, String>,
pub headers_text: Option<String>,
pub mime_type: String,
pub request_headers: Option<HashMap<String, String>>,
pub request_headers_text: Option<String>,
pub from_disk_cache: Option<bool>,
pub from_prefetch_cache: Option<bool>,
pub from_service_worker: Option<bool>,
pub encoded_data_length: Option<f64>,
pub protocol: Option<String>,
pub security_state: Option<String>,
pub security_details: Option<SecurityDetails>,
pub remote_ip_address: Option<String>,
pub remote_port: Option<i32>,
}Expand description
HTTP response data.
Fields§
§url: StringResponse URL.
status: u32HTTP response status code.
status_text: StringHTTP response status text.
headers: HashMap<String, String>HTTP response headers.
headers_text: Option<String>HTTP response headers text.
mime_type: StringResource mimeType.
request_headers: Option<HashMap<String, String>>Refined HTTP request headers that were actually transmitted over the network.
request_headers_text: Option<String>HTTP request headers text.
from_disk_cache: Option<bool>Whether the response was served from disk cache.
from_prefetch_cache: Option<bool>Whether the response was served from the prefetch cache.
from_service_worker: Option<bool>Whether the response was served from ServiceWorker.
encoded_data_length: Option<f64>Total number of bytes received.
protocol: Option<String>Protocol for the request.
security_state: Option<String>Security state.
security_details: Option<SecurityDetails>Security details for HTTPS responses.
remote_ip_address: Option<String>Remote IP address.
remote_port: Option<i32>Remote port.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more