Struct iron_drain::Drain [] [src]

pub struct Drain { /* fields omitted */ }

Iron middleware that makes sure requests are read in full before reusing sockets


impl Drain

Create a Drain with the default limit (1MB)

Create a Drain with a custom limit

Trait Implementations

impl AfterMiddleware for Drain

Do whatever post-processing this middleware should do.

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