Re: [fetch] Can headers ordering be lessened? (#189)

The way the `Headers` object works, and not at all coincidentally, `FormData` and `URLSearchParams` objects do too, is that they are somewhat like a map, but can also be used as a multimap-like. So either you use get/set or you use getAll/append. delete/has work well either way.

While this is a little strange, it provides a simple map-based API for the common case, but if you need to deal with the uncommon case, that's taken care of too. And it's a multimap-like, since for some of these the ordering of pairs matters too.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/189#issuecomment-169711787

Received on Thursday, 7 January 2016 16:15:54 UTC