[−][src]Trait hreq::server::Middleware
Required methods
fn call<'a>(
&'a self,
req: Request<Body>,
next: Next
) -> Pin<Box<dyn Future<Output = Reply> + Send + 'a>>
&'a self,
req: Request<Body>,
next: Next
) -> Pin<Box<dyn Future<Output = Reply> + Send + 'a>>
Implementors
impl<F: Send + Sync + 'static, Fut, Ret> Middleware for F where
F: Fn(Request<Body>, Next) -> Fut,
Fut: Future<Output = Ret> + Send + 'static,
Ret: Into<Reply>,
[src]
F: Fn(Request<Body>, Next) -> Fut,
Fut: Future<Output = Ret> + Send + 'static,
Ret: Into<Reply>,