pub struct HarRequest {
pub method: String,
pub url: String,
pub http_version: String,
pub headers: Vec<HarHeader>,
pub query_string: Vec<HarQueryParam>,
pub headers_size: i64,
pub body_size: i64,
pub post_data: Option<HarPostData>,
}Expand description
HAR request object
Fields§
§method: StringHTTP method
url: StringRequest URL
http_version: StringHTTP version
headers: Vec<HarHeader>Request headers as name-value pairs
query_string: Vec<HarQueryParam>Query string parameters
headers_size: i64Size of request headers in bytes (-1 if unknown)
body_size: i64Size of request body in bytes (-1 if unknown)
post_data: Option<HarPostData>POST data (if applicable)
Trait Implementations§
Source§impl Clone for HarRequest
impl Clone for HarRequest
Source§fn clone(&self) -> HarRequest
fn clone(&self) -> HarRequest
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 HarRequest
impl Debug for HarRequest
Auto Trait Implementations§
impl Freeze for HarRequest
impl RefUnwindSafe for HarRequest
impl Send for HarRequest
impl Sync for HarRequest
impl Unpin for HarRequest
impl UnsafeUnpin for HarRequest
impl UnwindSafe for HarRequest
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