Struct Request
pub struct Request {
pub method: ArcStr,
pub url: ArcStr,
pub http_version: HttpVersion,
pub cookies: Vec<Cookie>,
pub headers: Vec<Header>,
pub query_string: Vec<QueryStringPair>,
pub post_data: Option<PostData>,
pub headers_size: i64,
pub body_size: i64,
pub comment: Option<ArcStr>,
}Available on crate features
http and std only.Expand description
This object contains detailed info about performed request.
Fields§
§method: ArcStrRequest method (GET, POST, …).
url: ArcStrAbsolute URL of the request (fragments are not included).
http_version: HttpVersionRequest HTTP Version.
List of cookie objects.
headers: Vec<Header>List of header objects.
query_string: Vec<QueryStringPair>List of query parameter objects.
post_data: Option<PostData>Posted data info.
headers_size: i64Total number of bytes from the start of the HTTP request message
Until (and including) the double CRLF before the body.
Set to -1 if the info is not available.
body_size: i64Size of the request body (POST data payload) in bytes.
Set to -1 if the info is not available.
comment: Option<ArcStr>A comment provided by the user or the application.
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Request
impl Serialize for Request
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
Auto Trait Implementations§
impl Forget for Request
impl Freeze for Requestwhere
*const ThinInner is !null: Freeze,
*const str is !null: Freeze,
PhantomData<str>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Cookie>: Freeze,
PhantomData<Header>: Freeze,
PhantomData<QueryStringPair>: Freeze,
&'static str: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(Indexed, Indexed)>: Freeze,
PhantomData<PostParam>: Freeze,
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Requestwhere
*const ThinInner is !null: UnsafeUnpin,
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Cookie>: UnsafeUnpin,
PhantomData<Header>: UnsafeUnpin,
PhantomData<QueryStringPair>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(Indexed, Indexed)>: UnsafeUnpin,
PhantomData<PostParam>: UnsafeUnpin,
impl UnwindSafe for Requestwhere
NonNull<ThinInner>: UnwindSafe,
BoxRaw<str>: UnwindSafe,
RawVecInner: UnwindSafe,
&'static str: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more