Accept is an example of a header that supports multiple values. A parser/iterator is needed to iterate over the values, and parse them into one or more structs while iterating.
It would be great to have a generic mechanism to parse headers with multiple values.
And the value of the header is an iterator of this. I haven't completely investigated whether this is feasible and desirable so good to discuss before picking this up.
Accept is an example of a header that supports multiple values. A parser/iterator is needed to iterate over the values, and parse them into one or more structs while iterating.
It would be great to have a generic mechanism to parse headers with multiple values.
E.g. https://tools.ietf.org/html/rfc7231#section-5.3.2:
Would become
And the value of the header is an iterator of this. I haven't completely investigated whether this is feasible and desirable so good to discuss before picking this up.