pub struct HeaderLines<W: Write>(/* private fields */);
Expand description
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.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for HeaderLines<W>where
W: Freeze,
impl<W> RefUnwindSafe for HeaderLines<W>where
W: RefUnwindSafe,
impl<W> Send for HeaderLines<W>where
W: Send,
impl<W> Sync for HeaderLines<W>where
W: Sync,
impl<W> Unpin for HeaderLines<W>where
W: Unpin,
impl<W> UnwindSafe for HeaderLines<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more