pub struct HeaderLines<W: Write>(_);
Writes out the lines in an HTTP response header.
A response header is made of any number of lines, each terminated by a CRLF, followed by a final terminating CRLF before the response body begins.
When this object goes out of scope the header is terminated and the stream is flushed.
impl<W: Write> HeaderLines<W>[src]
fn new(sink: W) -> Self
Create a new
HeaderLines writing into the given stream.
fn line(&mut self) -> HeaderLine<&mut W>
Add a new line to the header, which can be written into.