pub struct ParserBuilder { /* private fields */ }
Implementations§
Source§impl ParserBuilder
impl ParserBuilder
pub fn new() -> Self
Sourcepub fn max_header_bytes(self, max_header_bytes: usize) -> Self
pub fn max_header_bytes(self, max_header_bytes: usize) -> Self
Causes the parser to return error if the headers exceed this byte length. Implementation note: currently this is only checked when about to wait for another chunk. If a single chunk contains a complete header, it may be parsed successfully in spite of exceeding this length.
Sourcepub fn max_body_bytes(self, max_body_bytes: usize) -> Self
pub fn max_body_bytes(self, max_body_bytes: usize) -> Self
Causes the parser to return error if the body exceeds this byte length.
Auto Trait Implementations§
impl Freeze for ParserBuilder
impl RefUnwindSafe for ParserBuilder
impl Send for ParserBuilder
impl Sync for ParserBuilder
impl Unpin for ParserBuilder
impl UnwindSafe for ParserBuilder
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