pub trait BodyDecode: Decode {
// Provided method
fn initialize(&mut self, header: &Header<'_>) -> Result<()> { ... }
}Expand description
BodyDecode is used for representing HTTP body decoders.
Provided Methods§
Sourcefn initialize(&mut self, header: &Header<'_>) -> Result<()>
fn initialize(&mut self, header: &Header<'_>) -> Result<()>
This method is called before starting to decode a HTTP body.
The default implementation does nothing.