Trait rok::middleware::Middleware [−][src]
Required methods
#[must_use]fn handle<'a, 'async_trait>(
&'a self,
req: Request,
next: Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
&'a self,
req: Request,
next: Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
Provided methods
Loading content...Implementors
impl Middleware for AccessLog
[src]
fn handle<'a, 'async_trait>(
&'a self,
ctx: Request,
next: Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
&'a self,
ctx: Request,
next: Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
impl Middleware for DefaultHeaders
[src]
fn handle<'a, 'async_trait>(
&'a self,
ctx: Request,
next: Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
&'a self,
ctx: Request,
next: Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
impl Middleware for RequestId
[src]
fn handle<'a, 'async_trait>(
&'a self,
ctx: Request,
next: Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
&'a self,
ctx: Request,
next: Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
impl<F, Fut> Middleware for F where
F: Fn(Request, Next<'_>) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Response> + Send + 'static,
[src]
F: Fn(Request, Next<'_>) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Response> + Send + 'static,
fn handle<'a, 'async_trait>(
&'a self,
req: Request,
next: Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
&'a self,
req: Request,
next: Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,