pub struct RequestSizeConfig {
pub max_body_size: usize,
pub max_headers: usize,
pub max_header_line_size: usize,
pub enabled: bool,
}Expand description
Request size limits configuration
Fields§
§max_body_size: usizeMaximum request body size in bytes
max_headers: usizeMaximum number of headers
max_header_line_size: usizeMaximum header line size in bytes
enabled: boolWhether size limits are enabled
Trait Implementations§
Source§impl Clone for RequestSizeConfig
impl Clone for RequestSizeConfig
Source§fn clone(&self) -> RequestSizeConfig
fn clone(&self) -> RequestSizeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestSizeConfig
impl Debug for RequestSizeConfig
Auto Trait Implementations§
impl Freeze for RequestSizeConfig
impl RefUnwindSafe for RequestSizeConfig
impl Send for RequestSizeConfig
impl Sync for RequestSizeConfig
impl Unpin for RequestSizeConfig
impl UnsafeUnpin for RequestSizeConfig
impl UnwindSafe for RequestSizeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more