UNPKG

structured-field-values

Version:

Implementation of Structured Field Values from IETF httpbis RFC8941

35 lines (34 loc) 735 B
[ { "name": "empty item", "raw": [""], "header_type": "item", "must_fail": true }, { "name": "leading space", "raw": [" \t 1"], "header_type": "item", "must_fail": true }, { "name": "trailing space", "raw": ["1 \t "], "header_type": "item", "must_fail": true }, { "name": "leading and trailing space", "raw": [" 1 "], "header_type": "item", "expected": [1, []], "canonical": ["1"] }, { "name": "leading and trailing whitespace", "raw": [" 1 "], "header_type": "item", "expected": [1, []], "canonical": ["1"] } ]