Struct uhttp_response_header::HeaderLines [] [src]

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>

Create a new HeaderLines writing into the given stream.

Add a new line to the header, which can be written into.

Trait Implementations

impl<W: Write> Drop for HeaderLines<W>

A method called when the value goes out of scope. Read more