pub(crate) fn headers(
lines: &[String],
) -> Result<Arc<[(HeaderName, HeaderValue)]>, BadHeader>Expand description
Reads each of lines, written Name: value, as a header to send.
§Errors
The first line that isn’t a header, or names one the download sets itself.