#[non_exhaustive]pub struct RouteRequest {
pub method: Method,
pub uri: Uri,
pub headers: HeaderMap,
pub body: Bytes,
pub client: ClientAddress,
}Expand description
Owned view of a request handed to an ExtraRouteHandler.
Unlike RequestParts, this owns its data (including the full body), since
an extra route may consume the body to produce a response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.method: MethodRequest method.
uri: UriFull request URI (path + query).
headers: HeaderMapRequest headers, with the forwarding headers as the
client_address.forward policy wrote them (see
RequestParts::headers). Decide on client.
body: BytesRequest body bytes.
client: ClientAddressThe client address the proxy resolved, with the connection’s peer.
Implementations§
Source§impl RouteRequest
impl RouteRequest
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RouteRequest
impl RefUnwindSafe for RouteRequest
impl Send for RouteRequest
impl Sync for RouteRequest
impl Unpin for RouteRequest
impl UnsafeUnpin for RouteRequest
impl UnwindSafe for RouteRequest
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request