Re: [fetch] Why are headers a special data-structure? (#154)

It seems Chromium and Firefox are supporting insertion order for fetch, but I am not sure what is the rationale here.

In WebKit, for XHR, I do not think header insertion order is supported for different header names. A HashMap to store headers is used, as well as in WebKit network layer.

Using a STL-like ordered multimap would allow faster access to values if we could lessen the ordering constraint.
 
Is there a usecase for keeping a strong ordering? service worker? router optimization?

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

Received on Tuesday, 5 January 2016 11:00:12 UTC