Expand description
Optional extra HTTP headers for outbound RPC and WebSocket clients (WAF / reverse proxy).
Functions§
- header_
map_ from_ lines - Build a map from independent lines (config file array entries, each
Name: value). - header_
map_ redacted_ summary - Comma-separated summary for logs — sensitive header values redacted.
- merge_
header_ line - Parse
Name: valueand insert into the map (replaces an existing same name). - merge_
into - Merge into
into_map: each pair fromsourceis inserted (same name replaced). - parse_
header_ line - Split
Name: valueon the first colon (value may contain further colons). - parse_
tb_ headers_ env - Parse
TB_HEADERS: oneName: valueper line (\nor\r\n). Empty lines and#comments skipped. Commas inside values are fine; newlines inside a value are not supported (use another line for another header).