httpwg / http-extensions

HTTP Extensions in progress
https://httpwg.org/http-extensions/
445 stars 146 forks source link

List of Lists? #721

Closed mnot closed 5 years ago

mnot commented 6 years ago

Variants needs a structure like this:

Header: foo; bar;baz, bat;brrr;whatever

i.e., a list-of-lists.

ParamList isn't suitable because:

Adding a list of lists datatype seems pretty straightforward, but I'm conscious that we can't keep on adding stuff if we want people to implement.

The other approach would be to remove the discontinuity between item and key (i.e., revert their split from #702) and make parameters into an ordered mapping (as we did for dictionaries).

Thoughts?

mnot commented 5 years ago

On balance, my inclination here is to add it; the implementation load isn't huge. Anyone feel otherwise?

phluid61 commented 5 years ago

It has a use case, and it doesn't seem to add much complexity. Is this the point where we draw the line and say "no new data structures"?

mnot commented 5 years ago

I think we're getting to the point where we say "no new data structures in this spec" -- a follow-on can always add something.