pub struct Limits {
pub max_body_len: usize,
pub max_header_bytes: usize,
pub max_header_count: usize,
pub max_target_len: usize,
}Expand description
Per-engine limits. Values can become stricter but never exceed hard limits.
Fields§
§max_body_len: usizeMaximum plaintext request or response body size.
max_header_bytes: usizeMaximum combined header-name and header-value bytes per message.
max_header_count: usizeMaximum number of header fields per message.
max_target_len: usizeMaximum combined request authority and path size.
Implementations§
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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