Interface: HeaderPolicy
A compiled inbound-header policy. Build one with toHeaderPolicy.
Properties
Section titled “Properties”patterns
Section titled “patterns”
readonlypatterns: readonlystring[]
The allow-list entries backing this policy (for diagnostics and tests).
Methods
Section titled “Methods”apply()
Section titled “apply()”apply(
headers):string[]
Delete every disallowed header from a mutable Node header bag, returning the lower-cased names removed (for debug logging).
Parameters
Section titled “Parameters”headers
Section titled “headers”Record<string, unknown>
Returns
Section titled “Returns”string[]
forwards()
Section titled “forwards()”forwards(
name):boolean
Whether name survives on tunnel traffic.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean