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]

Create a Drain with the default limit (1MB)

Create a Drain with a custom limit

Trait Implementations

impl AfterMiddleware for Drain
[src]

Do whatever post-processing this middleware should do.

Respond to an error thrown by previous AfterMiddleware, the Handler, or a BeforeMiddleware. Read more