pub fn extra_headers_for(cwd: &Path, url: &str) -> Vec<(String, String)>Expand description
Every http.<...>.extraHeader and global http.extraHeader value
whose URL part matches url, parsed into (Name, Value) pairs.
Ordering is “longest URL prefix first, then global” — same
semantics as upstream’s lfshttp/client.go::extraHeaders(). Lines
without a : separator are silently dropped (we can’t form a
header from them).
Both the URL portion of the config key and the header name are
case-insensitive; reqwest’s HeaderName::try_from canonicalizes
the name when the value is set, so AUTHORIZATION: and
Authorization: end up as the same header.