Struct iron::response::ResponseBody [] [src]

pub struct ResponseBody<'a>(_);

A Writer of HTTP response bodies.

Methods

impl<'a> ResponseBody<'a>

fn new<W: Write + 'a>(writer: W) -> ResponseBody<'a>

Create a new ResponseBody, mostly for use in mocking.

Trait Implementations

impl<'a> Write for ResponseBody<'a>

fn write(&mut self, buf: &[u8]) -> Result<usize>

fn flush(&mut self) -> Result<()>

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>

fn by_ref(&mut self) -> &mut Self

fn broadcast<W>(self, other: W) -> Broadcast<Self, W> where W: Write