Trait saphir::middleware::Middleware
source · pub trait Middleware {
// Required method
fn next(
&'static self,
ctx: HttpContext,
chain: &'static dyn MiddlewareChain
) -> BoxFuture<'static, Result<HttpContext, SaphirError>>;
}
Required Methods§
fn next( &'static self, ctx: HttpContext, chain: &'static dyn MiddlewareChain ) -> BoxFuture<'static, Result<HttpContext, SaphirError>>
Implementors§
impl Middleware for FileMiddleware
Available on crate feature
file
only.