Struct iron::response::BodyReader [] [src]

pub struct BodyReader<R: Send>(pub R);

Wrapper type to set Readers as response bodies

Trait Implementations

impl<R: Read + Send> WriteBody for BodyReader<R>
[src]

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

Writes the body to the provided ResponseBody.

impl<R: Read + Send + 'static> Modifier<Response> for BodyReader<R>
[src]

fn modify(self, res: &mut Response)

Modify F with self.