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

I think this data structure is a straight <name, value> map, values being combined when trying to add headers with a same name.

It supports delete, has, set (and combine which is not exposed in the fetch API).
It does not support append() nor insertion ordering iterable access.
get() and getAll() are a bit redundant with this data structure.

In WebKit, there is a generic headers structure used by different backends.
Currently it has the same model as CFNetwork.
https://bugs.webkit.org/show_bug.cgi?id=152828 is discussing the possibility to change that structure to fit the fetch API model.

Part of the discussion is why the fetch Headers API is exposing some information that is not meaningful at the network level, exposing this information making it potentially meaningful at the web application level.

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

Received on Friday, 15 January 2016 11:25:16 UTC