OutboundHeaderReplacement
OutboundHeaderReplacement replaces headers in HTTP requests on an OutboundRouteHTTPS.
Each header is set on every matching request, so the request has exactly one header with that name and the given value. Copies the request already has are removed, whatever their case, and the header is added if the request has none. A route can set each header name only once, ignoring case.
Header values support templating with keys in Secret: a "$"-prefixed key name is replaced with the secret value. Literal "$" characters are written "$$". Secret values never enter the Sandbox.
type OutboundHeaderReplacement struct {
Secret *Secret // Secret is a named Secret (e.g. from Client.Secrets.FromName), or nil for static values.
Headers map[string]string
}