limiter
This is an example of BeforeMiddleware for the Iron framework. It limits the request body size
by checking first the Content-Length header, then the size of the payload. The response is either
an HTTP 413 or it continues down the chain.
Include this in your Cargo.toml file:
Example
extern crate iron;
extern crate limiter;
use *;
use RequestLimit;
License
MIT