This crate provides a simple formatter for building the lines of an HTTP
response header. The result can be
written directly into a TcpStream
or any other object that implements Write
.
Example
use HeaderLines;
use ;
let mut buf = ;
let mut cursor = new;
// Write a header with response code `200` and a `Host: iana.org` header field.
// Now write the body.
write!.unwrap;
assert_eq!;