OutboundHeaderReplacement
Headers to set on requests matched by an HTTPS OutboundRoute.
Header values support templating with keys in secret: a $-prefixed key
name in the secret (e.g. $API_TOKEN) is replaced with the secret value.
Literal $ characters are written $$. Secret values never enter the
Sandbox.
interface OutboundHeaderReplacement {
/**
* Named {@link Secret} (e.g. from `client.secrets.fromName`) whose keys the
* header values may reference. Static values need no secret.
*/
secret?: Secret;
/** Header name -> header value template. */
headers: Record<string, string>;
}