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]
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]
Causes the parser to return error if the body exceeds this byte length.
pub fn parse<S, E>(
self,
input: S,
boundary: &str
) -> impl Stream<Item = Result<Part, Error>> where
S: Stream<Item = Result<Bytes, E>>,
E: Into<Box<dyn Error + Send + Sync>>,
[src]
self,
input: S,
boundary: &str
) -> impl Stream<Item = Result<Part, Error>> where
S: Stream<Item = Result<Bytes, E>>,
E: Into<Box<dyn Error + Send + Sync>>,
Auto Trait Implementations
impl RefUnwindSafe for ParserBuilder
impl RefUnwindSafe for ParserBuilder
impl Send for ParserBuilder
impl Send for ParserBuilder
impl Sync for ParserBuilder
impl Sync for ParserBuilder
impl Unpin for ParserBuilder
impl Unpin for ParserBuilder
impl UnwindSafe for ParserBuilder
impl UnwindSafe for ParserBuilder