UNPKG

structured-field-values

Version:

Implementation of Structured Field Values from IETF httpbis RFC8941

39 lines (38 loc) 1.13 kB
[ { "name": "basic token - item", "raw": ["a_b-c.d3:f%00/*"], "header_type": "item", "expected": [{"__type": "token", "value": "a_b-c.d3:f%00/*"}, []] }, { "name": "token with capitals - item", "raw": ["fooBar"], "header_type": "item", "expected": [{"__type": "token", "value": "fooBar"}, []] }, { "name": "token starting with capitals - item", "raw": ["FooBar"], "header_type": "item", "expected": [{"__type": "token", "value": "FooBar"}, []] }, { "name": "basic token - list", "raw": ["a_b-c3/*"], "header_type": "list", "expected": [[{"__type": "token", "value": "a_b-c3/*"}, []]] }, { "name": "token with capitals - list", "raw": ["fooBar"], "header_type": "list", "expected": [[{"__type": "token", "value": "fooBar"}, []]] }, { "name": "token starting with capitals - list", "raw": ["FooBar"], "header_type": "list", "expected": [[{"__type": "token", "value": "FooBar"}, []]] } ]