Skip to content

Interface: HeaderPolicy

A compiled inbound-header policy. Build one with toHeaderPolicy.

readonly patterns: readonly string[]

The allow-list entries backing this policy (for diagnostics and tests).

apply(headers): string[]

Delete every disallowed header from a mutable Node header bag, returning the lower-cased names removed (for debug logging).

Record<string, unknown>

string[]


forwards(name): boolean

Whether name survives on tunnel traffic.

string

boolean