This allows the structured header validators to parse values into well-typed objects without ad-hoc logic.
validate.ts is effectively a module parameterized over a map type (object for JSON, Map for structured headers) and a value type (the Json type union for JSON, Item | InnerList for structured headers).
This allows the structured header validators to parse values into well-typed objects without ad-hoc logic.
validate.ts
is effectively a module parameterized over a map type (object
for JSON,Map
for structured headers) and a value type (theJson
type union for JSON,Item | InnerList
for structured headers).