Struct limiter::RequestLimit [] [src]

pub struct RequestLimit { /* fields omitted */ }

RequestLimit configures the maximum payload size and URL length for Iron's middleware system.

Methods

impl RequestLimit
[src]

set_max_body_size overrides the maximum body request size of 5 MB.

set_max_url_length overrides the default maximum URL length of 256.

Trait Implementations

impl Default for RequestLimit
[src]

Returns the "default value" for a type. Read more

impl BeforeMiddleware for RequestLimit
[src]

Do whatever work this middleware should do with a Request object.

Respond to an error thrown by a previous BeforeMiddleware. Read more