Skip to main content

upstream_request_headers

Function upstream_request_headers 

Source
pub fn upstream_request_headers(
    headers: &HeaderMap,
    config: &Config,
    auth: ProxyAuth,
) -> HeaderMap
Expand 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.