Struct limiter::RequestLimit

source ·
pub struct RequestLimit { /* private fields */ }
Expand description

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

Implementations§

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§

Do whatever work this middleware should do with a Request object.
Respond to an error thrown by a previous BeforeMiddleware. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Get the TypeId of this object.