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

Determine the kind of the request body

Write out the request body into the given writer

This method can be called multiple times if a request is redirected.

Provided Methods

Gets the content type this body is tied to if it has one.

Implementors