pub trait Body {
fn kind(&mut self) -> IoResult<BodyKind>;
fn write<W: Write>(&mut self, writer: W) -> IoResult<()>;
fn content_type(&mut self) -> IoResult<Option<String>> { ... }
}
Expand description
A generic rewindable request body
Required Methods
Provided Methods
sourcefn content_type(&mut self) -> IoResult<Option<String>>
fn content_type(&mut self) -> IoResult<Option<String>>
Gets the content type this body is tied to if it has one.