pub fn write_response<W: Write>(
stream: &mut W,
response: &Response,
keep_alive: bool,
) -> Result<()>Expand description
Writes response to stream as Content-Length-framed
HTTP/1.1, honoring keep_alive in the Connection header.
ยงErrors
I/O error writing to the stream.