pub struct Request<'a, P> {
pub headers: RequestHeaders<'a>,
pub raw_headers: Vec<RequestHeader<'a>>,
pub payload: P,
}
Expand description
Parsed Request.
Fields§
§headers: RequestHeaders<'a>
§raw_headers: Vec<RequestHeader<'a>>
§payload: P
this field usually contains an iterator yielding the lines of the payload, but Request needs the type Parameter because of Limitations of impl Trait
Trait Implementations§
impl<'a, P> StructuralPartialEq for Request<'a, P>
Auto Trait Implementations§
impl<'a, P> Freeze for Request<'a, P>where
P: Freeze,
impl<'a, P> RefUnwindSafe for Request<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for Request<'a, P>where
P: Send,
impl<'a, P> Sync for Request<'a, P>where
P: Sync,
impl<'a, P> Unpin for Request<'a, P>where
P: Unpin,
impl<'a, P> UnwindSafe for Request<'a, P>where
P: UnwindSafe,
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> 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