pub fn upstream_request_headers(
headers: &HeaderMap,
config: &Config,
auth: ProxyAuth,
) -> HeaderMapExpand description
Build the request headers forwarded to an upstream API.
Hop-by-hop and origin-specific headers are removed, all other headers stay open-ended, and the configured credential is injected only when the client did not supply one.