[−][src]Trait gotham_restful::FromBody
This trait must be implemented by every type that can be used as a request body. It allows to create the type from a hyper body chunk and it's content type.
Associated Types
Loading content...Required methods
fn from_body(body: Chunk, content_type: Mime) -> Result<Self, Self::Err>
Create the request body from a raw body and the content type.