pub struct RequestEnvelope {
pub method: String,
pub path: String,
pub query: String,
pub headers: HeaderMap,
pub body: StreamBody,
pub path_params: HashMap<String, String>,
pub reply_tx: Sender<HttpReply>,
}Expand description
An inbound HTTP request sent from the Axum dispatch handler to an
HttpConsumer receive loop.
Internal plumbing — subject to change without notice.
Fields§
§method: String§path: String§query: String§headers: HeaderMap§body: StreamBody§path_params: HashMap<String, String>Path parameters extracted from a REST template match, e.g.
id=42 for a request to /users/42 matched against
/users/{id}. Empty for non-REST requests or for literal
template matches. The consumer turns these into
CamelHttpPath_<param> headers on the Exchange (expert guidance E2).
reply_tx: Sender<HttpReply>Auto Trait Implementations§
impl !RefUnwindSafe for RequestEnvelope
impl !UnwindSafe for RequestEnvelope
impl Freeze for RequestEnvelope
impl Send for RequestEnvelope
impl Sync for RequestEnvelope
impl Unpin for RequestEnvelope
impl UnsafeUnpin for RequestEnvelope
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