Function write_response_header

Source
pub fn write_response_header<T>(
    r: &Response<T>,
    io: impl Write,
) -> Result<usize>
Expand description

Write response line and headers (but not body) of this HTTP 1.1 response

Returns number of bytes written

It is recommended to use either BufWriter or Cursor for efficiency