pub struct ContentLengthBodyParser { /* private fields */ }Implementations§
source§impl ContentLengthBodyParser
impl ContentLengthBodyParser
pub fn new() -> Self
pub fn set_length(&mut self, length: usize)
pub fn get_length(&self) -> usize
Trait Implementations§
source§impl BodyParser for ContentLengthBodyParser
impl BodyParser for ContentLengthBodyParser
fn parse<R: BufRead>(
&mut self,
r: &mut R,
body_buf: &mut Vec<u8>
) -> Result<BodyParseOutput, BodyParseError>
source§impl Default for ContentLengthBodyParser
impl Default for ContentLengthBodyParser
source§fn default() -> ContentLengthBodyParser
fn default() -> ContentLengthBodyParser
Returns the “default value” for a type. Read more