Struct actix_web_requestid::RequestIDMiddleware [−][src]
pub struct RequestIDMiddleware {}
Expand description
Request id middleware
use actix_web::*; use actix_web_requestid::{RequestIDMiddleware}; let app = App::new() .wrap(RequestIDMiddleware::default());
Trait Implementations
impl<S, B> Transform<S, ServiceRequest> for RequestIDMiddleware where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
S::Future: 'static,
impl<S, B> Transform<S, ServiceRequest> for RequestIDMiddleware where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
S::Future: 'static,
type Response = ServiceResponse<B>
type Response = ServiceResponse<B>
Responses produced by the service.
type Transform = RequestIDService<S>
type Transform = RequestIDService<S>
The TransformService
value created by this factory
Creates and returns a new Transform component, asynchronously
Auto Trait Implementations
impl RefUnwindSafe for RequestIDMiddleware
impl Send for RequestIDMiddleware
impl Sync for RequestIDMiddleware
impl Unpin for RequestIDMiddleware
impl UnwindSafe for RequestIDMiddleware