Support / Method
A strict reading, with uncertainty left visible.
HeaderName parses a single HTTP response-header field value. It implements the grammar and filename-selection guidance of RFC 6266, then applies the current extended-value syntax and UTF-8 requirement from RFC 8187.
Status meanings
VALID means the syntax fits this deliberately small profile. INVALID means a grammar or duplication rule failed. UNSUPPORTED means the syntax needs semantics this pilot refuses to guess.
What is decoded
filename*is parsed ascharset'language'value-chars.- A non-empty language field is checked against the complete RFC 5646 Language-Tag structure, including private-use and grandfathered forms, without requiring current registry membership.
- UTF-8 is decoded strictly. Malformed percent escapes and invalid UTF-8 are errors.
- ISO-8859-1 is decoded only to expose the historical RFC 5987 compatibility case and is marked unsupported for current production.
- Percent-looking sequences in regular
filenamestay literal.
What is not promised
- No browser-parity or browser-recovery prediction.
- No multipart/form-data interpretation.
- No claim that an extension, MIME type, suggested name, or reconstructed header makes a payload safe.
- No exhaustive operating-system policy: the filename checks are a compact warning set.