ProxyPolicyConfig
Defined in: packages/gateway/src/policies/proxy.ts:11
Configuration for the proxy policy.
Extends
Section titled “Extends”Properties
Section titled “Properties”headers?
Section titled “headers?”
optionalheaders?:Record<string,string>
Defined in: packages/gateway/src/policies/proxy.ts:13
Headers to add to the proxied request
preserveHost?
Section titled “preserveHost?”
optionalpreserveHost?:boolean
Defined in: packages/gateway/src/policies/proxy.ts:22
Whether to preserve the inbound Host header when proxying to URL upstreams. Default: false (Host is rewritten to the upstream target host).
optionalskip?: (c) =>boolean|Promise<boolean>
Defined in: packages/gateway/src/policies/types.ts:90
Skip this policy when condition returns true
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean | Promise<boolean>
Inherited from
Section titled “Inherited from”stripHeaders?
Section titled “stripHeaders?”
optionalstripHeaders?:string[]
Defined in: packages/gateway/src/policies/proxy.ts:15
Headers to strip from the proxied request
timeout?
Section titled “timeout?”
optionaltimeout?:number
Defined in: packages/gateway/src/policies/proxy.ts:17
Timeout in milliseconds. Default: 30000.