Trait boguin::FromBody
[−]
[src]
pub trait FromBody: Send + Sync + Sized + 'static { fn from_body<R: Read>(response: &Parts, body: &mut Body<R>) -> Result<Self>; }
Read response bodies as strong types.
Used to convert untyped message bodies to a more specific representation.
Read the response header values to determine text encoding, compression applied and content type transmitted.