Struct saphir::MiddlewareStack [−][src]
pub struct MiddlewareStack { /* fields omitted */ }
Struct representing the layering of middlewares in the server
Methods
impl MiddlewareStack
[src]
impl MiddlewareStack
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn resolve(
&self,
req: &mut SyncRequest,
res: &mut SyncResponse
) -> RequestContinuation
[src]
pub fn resolve(
&self,
req: &mut SyncRequest,
res: &mut SyncResponse
) -> RequestContinuation
pub fn apply<M: 'static + Middleware>(
&self,
m: M,
include_path: Vec<&str>,
exclude_path: Option<Vec<&str>>
)
[src]
pub fn apply<M: 'static + Middleware>(
&self,
m: M,
include_path: Vec<&str>,
exclude_path: Option<Vec<&str>>
)
Method to apply a new middleware onto the stack where the include_path
vec are all path affected by the middleware,
and exclude_path
are exclusion amongst the included paths.
Trait Implementations
impl Clone for MiddlewareStack
[src]
impl Clone for MiddlewareStack
Auto Trait Implementations
impl Send for MiddlewareStack
impl Send for MiddlewareStack
impl Sync for MiddlewareStack
impl Sync for MiddlewareStack