Struct iron_drain::Drain
[−]
[src]
pub struct Drain { /* fields omitted */ }
Iron middleware that makes sure requests are read in full before reusing sockets
Methods
impl Drain
[src]
fn new() -> Drain
Create a Drain with the default limit (1MB)
fn with_limit(limit: u64) -> Drain
Create a Drain with a custom limit
Trait Implementations
impl AfterMiddleware for Drain
[src]
fn after(&self, req: &mut Request, resp: Response) -> IronResult<Response>
Do whatever post-processing this middleware should do.
fn catch(&self, req: &mut Request, err: IronError) -> IronResult<Response>
Respond to an error thrown by previous AfterMiddleware
, the Handler
, or a BeforeMiddleware
. Read more