pub trait BodyReader {
// Required method
fn next_chunk(&mut self, scope: &RequestScope) -> Result<Option<Vec<u8>>>;
}Expand description
Pull-based bounded request body. A chunk is consumed before another can be requested.
Required Methods§
Sourcefn next_chunk(&mut self, scope: &RequestScope) -> Result<Option<Vec<u8>>>
fn next_chunk(&mut self, scope: &RequestScope) -> Result<Option<Vec<u8>>>
Returns the next non-empty chunk, or None at the message boundary.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".