Struct multipart_stream::parser::ParserBuilder [−][src]
pub struct ParserBuilder { /* fields omitted */ }
Implementations
impl ParserBuilder
[src]
impl ParserBuilder
[src]pub fn new() -> Self
[src]
pub fn max_header_bytes(self, max_header_bytes: usize) -> Self
[src]
pub fn max_header_bytes(self, max_header_bytes: usize) -> Self
[src]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.
pub fn max_body_bytes(self, max_body_bytes: usize) -> Self
[src]
pub fn max_body_bytes(self, max_body_bytes: usize) -> Self
[src]Causes the parser to return error if the body exceeds this byte length.