Skip to main content

Module client_headers

Module client_headers 

Source
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: value and insert into the map (replaces an existing same name).
merge_into
Merge into into_map: each pair from source is inserted (same name replaced).
parse_header_line
Split Name: value on the first colon (value may contain further colons).
parse_tb_headers_env
Parse TB_HEADERS: one Name: value per line (\n or \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).