Struct volo_http::context::HttpContext
source · pub struct HttpContext {
pub peer: Address,
pub method: Method,
pub uri: Uri,
pub version: Version,
pub headers: HeaderMap,
pub extensions: Extensions,
pub params: Params,
}Fields§
§peer: Address§method: Method§uri: Uri§version: Version§headers: HeaderMap§extensions: Extensions§params: ParamsTrait Implementations§
source§impl Debug for HttpContext
impl Debug for HttpContext
source§impl<S, T> Service<HttpContext, Incoming> for ExtensionService<S, T>where
S: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Send + Sync + 'static,
T: Clone + Send + Sync + 'static,
impl<S, T> Service<HttpContext, Incoming> for ExtensionService<S, T>where
S: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Send + Sync + 'static,
T: Clone + Send + Sync + 'static,
source§impl<S, H, R, T> Service<HttpContext, Incoming> for Filter<S, H, R, T>where
S: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Send + Sync + 'static,
H: HandlerWithoutRequest<T, Result<(), R>> + Clone + Send + Sync + 'static,
R: IntoResponse + Send + Sync,
T: Sync,
impl<S, H, R, T> Service<HttpContext, Incoming> for Filter<S, H, R, T>where
S: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Send + Sync + 'static,
H: HandlerWithoutRequest<T, Result<(), R>> + Clone + Send + Sync + 'static,
R: IntoResponse + Send + Sync,
T: Sync,
source§impl<I, F, S, T> Service<HttpContext, Incoming> for FromFn<I, F, S, T>where
I: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Clone + Send + Sync + 'static,
F: for<'r> MiddlewareHandlerFromFn<'r, T, S> + Clone + Sync,
S: Clone + Sync,
impl<I, F, S, T> Service<HttpContext, Incoming> for FromFn<I, F, S, T>where
I: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Clone + Send + Sync + 'static,
F: for<'r> MiddlewareHandlerFromFn<'r, T, S> + Clone + Sync,
S: Clone + Sync,
source§impl<H, S, T> Service<HttpContext, Incoming> for HandlerService<H, S, T>
impl<H, S, T> Service<HttpContext, Incoming> for HandlerService<H, S, T>
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
source§impl<I, F, S, T> Service<HttpContext, Incoming> for MapResponse<I, F, S, T>where
I: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Clone + Send + Sync + 'static,
F: for<'r> MiddlewareHandlerMapResponse<'r, T, S> + Clone + Sync,
S: Clone + Sync,
impl<I, F, S, T> Service<HttpContext, Incoming> for MapResponse<I, F, S, T>where
I: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Clone + Send + Sync + 'static,
F: for<'r> MiddlewareHandlerMapResponse<'r, T, S> + Clone + Sync,
S: Clone + Sync,
source§impl Service<HttpContext, Incoming> for Router<()>
impl Service<HttpContext, Incoming> for Router<()>
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
source§impl<S, H, R, T> Service<HttpContext, Incoming> for Timeout<S, H, R, T>where
S: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Send + Sync + 'static,
H: HandlerWithoutRequest<T, R> + Clone + Send + Sync + 'static,
R: IntoResponse + Sync,
T: Sync,
impl<S, H, R, T> Service<HttpContext, Incoming> for Timeout<S, H, R, T>where
S: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Send + Sync + 'static,
H: HandlerWithoutRequest<T, R> + Clone + Send + Sync + 'static,
R: IntoResponse + Sync,
T: Sync,
Auto Trait Implementations§
impl !RefUnwindSafe for HttpContext
impl Send for HttpContext
impl Sync for HttpContext
impl Unpin for HttpContext
impl !UnwindSafe for HttpContext
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