pub struct HarResponse {
pub status: i64,
pub status_text: String,
pub http_version: String,
pub headers: Vec<HarHeader>,
pub cookies: Vec<HarCookie>,
pub content: HarContent,
pub redirect_url: String,
pub headers_size: i64,
pub body_size: i64,
}Expand description
HAR response object
Fields§
§status: i64HTTP status code
status_text: StringHTTP status text
http_version: StringHTTP version
headers: Vec<HarHeader>Response headers as name-value pairs
Response cookies
content: HarContentResponse content metadata
redirect_url: StringRedirect URL (empty if no redirect)
headers_size: i64Size of response headers in bytes (-1 if unknown)
body_size: i64Size of response body in bytes (-1 if unknown)
Trait Implementations§
Source§impl Clone for HarResponse
impl Clone for HarResponse
Source§fn clone(&self) -> HarResponse
fn clone(&self) -> HarResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HarResponse
impl Debug for HarResponse
Auto Trait Implementations§
impl Freeze for HarResponse
impl RefUnwindSafe for HarResponse
impl Send for HarResponse
impl Sync for HarResponse
impl Unpin for HarResponse
impl UnsafeUnpin for HarResponse
impl UnwindSafe for HarResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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