Trait iron::response::WriteBody [] [src]

pub trait WriteBody {
    fn write_body(&mut self, res: &mut ResponseBody) -> Result<()>;
}
[]

A trait which writes the body of an HTTP response.

Required Methods

fn write_body(&mut self, res: &mut ResponseBody) -> Result<()>[]

Writes the body to the provided ResponseBody.

Implementors