chromiumoxide::cdp::browser_protocol::network

Struct Response

Source
pub struct Response {
Show 25 fields pub url: String, pub status: i64, pub status_text: String, pub headers: Headers, pub mime_type: String, pub charset: String, pub request_headers: Option<Headers>, pub connection_reused: bool, pub connection_id: f64, pub remote_ip_address: Option<String>, pub remote_port: Option<i64>, pub from_disk_cache: Option<bool>, pub from_service_worker: Option<bool>, pub from_prefetch_cache: Option<bool>, pub from_early_hints: Option<bool>, pub service_worker_router_info: Option<ServiceWorkerRouterInfo>, pub encoded_data_length: f64, pub timing: Option<ResourceTiming>, pub service_worker_response_source: Option<ServiceWorkerResponseSource>, pub response_time: Option<TimeSinceEpoch>, pub cache_storage_cache_name: Option<String>, pub protocol: Option<String>, pub alternate_protocol_usage: Option<AlternateProtocolUsage>, pub security_state: SecurityState, pub security_details: Option<SecurityDetails>,
}
Expand description

HTTP response data. Response

Fields§

§url: String

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

§status: i64

HTTP response status code.

§status_text: String

HTTP response status text.

§headers: Headers

HTTP response headers.

§mime_type: String

Resource mimeType as determined by the browser.

§charset: String

Resource charset as determined by the browser (if applicable).

§request_headers: Option<Headers>

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

§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<String>

Remote IP address.

§remote_port: Option<i64>

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.

§from_prefetch_cache: Option<bool>

Specifies that the request was served from the prefetch cache.

§from_early_hints: Option<bool>

Specifies that the request was served from the prefetch cache.

§service_worker_router_info: Option<ServiceWorkerRouterInfo>

Information about how ServiceWorker Static Router API was used. If this field is set with matchedSourceType field, a matching rule is found. If this field is set without matchedSource, no matching rule is found. Otherwise, the API is not used.

§encoded_data_length: f64

Total number of bytes received for this request so far.

§timing: Option<ResourceTiming>

Timing information for the given request.

§service_worker_response_source: Option<ServiceWorkerResponseSource>

Response source of response from ServiceWorker.

§response_time: Option<TimeSinceEpoch>

The time at which the returned response was generated.

§cache_storage_cache_name: Option<String>

Cache Storage Cache Name.

§protocol: Option<String>

Protocol used to fetch this request.

§alternate_protocol_usage: Option<AlternateProtocolUsage>

The reason why Chrome uses a specific transport protocol for HTTP semantics.

§security_state: SecurityState

Security state of the request resource.

§security_details: Option<SecurityDetails>

Security details for the request.

Implementations§

Source§

impl Response

Source§

impl Response

Source

pub const IDENTIFIER: &'static str = "Network.Response"

Trait Implementations§

Source§

impl Clone for Response

Source§

fn clone(&self) -> Response

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Response

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Response

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Response, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Response

Source§

fn eq(&self, other: &Response) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Response

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Response

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T