[][src]Function http_bytes::write_response_header

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

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