pub fn write_request_header<T>(r: &Request<T>, io: impl Write) -> Result<usize>Expand description
Write request line and headers (but not body) of this HTTP 1.1 request May add ‘Host:’ header automatically Returns number of bytes written
It is recommended to use either BufWriter or Cursor for efficiency
Scheme and version Request fields are ignored
If default Cargo feature basicauth is enabled and request contains
username and password in URL then Authorization: Basic HTTP header is
automatically added