pub struct Limits {
pub max_request_line: usize,
pub max_head: usize,
pub max_headers: usize,
pub max_header_line: usize,
pub max_body: u64,
pub max_chunk_line: usize,
pub max_trailers: usize,
}Expand description
Parser limits (plan §7.1). Exceeding one gives a specific Error.
Fields§
§max_request_line: usizeRequest line (or status line) in bytes, CRLF included. Default 8 KiB.
max_head: usizeWhole head in bytes. Default 16 KiB.
max_headers: usizeHeader fields. Default 100.
max_header_line: usizeOne header line in bytes, CRLF included. Default 8 KiB.
max_body: u64Body in bytes; a larger Content-Length is refused before any body byte is read. Default 10 MiB.
max_chunk_line: usizeA chunk-size line (size, extensions and CRLF) in bytes. Default 1 KiB.
max_trailers: usizeThe trailer section in bytes. Default 8 KiB.
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Forget for Limits
impl Freeze for Limits
impl Move 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