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]
fn set_max_body_size(&mut self, max_body: u64)
set_max_body_size overrides the maximum body request size of 5 MB.
fn set_max_url_length(&mut self, max_url_length: usize)
set_max_url_length overrides the default maximum URL length of 256.
Trait Implementations
impl Default for RequestLimit
[src]
fn default() -> RequestLimit
Returns the "default value" for a type. Read more