Adds a header value without overriding previous values.
Parses a Forwarded header value and will fall back to X-Forwarded-* headers.
The incoming HTTP headers.
The parsed Forwarded header.
Parses a list of split parameters and checks their validity.
A list of split parameters (token [ "=" ( token / quoted-string ) ])
The double quoted strings that need to be replaced.
An array of name/value objects corresponding to the parameters.
Splits the input string on commas, trims all parts and filters out empty ones.
Input header string.
Replaces all double quoted strings in the input string with
The Accept header string.
The transformed string and a map with keys
"0", etc. and values the original string that was there.