[whatwg/fetch] Structured Field Values (formerly Structured Headers) changes (#1053)

Reportedly SFV is the final name of https://tools.ietf.org/html/draft-ietf-httpbis-header-structure, though the RFC is not yet published.

This would mean we have to change

* https://fetch.spec.whatwg.org/#concept-header-list-get-structured-header
* https://fetch.spec.whatwg.org/#concept-header-list-set-structured-header

though maybe keep using the old IDs for some stability.

The other change @domenic and I have been contemplating is that we do not distinguish between no header present and header fails to parse for the entirety of the web platform. This would mean changing step 5 of the first algorithm to return null instead. I don't believe this affects any existing callers as they all already do so, but please let me know if you have any concerns.

Standards impacted by these naming changes are HTML, https://w3c.github.io/webappsec-fetch-metadata/, https://w3c.github.io/webappsec-feature-policy/, https://w3c.github.io/reporting/, ...? From a quick check they all treat null and failure as equivalent already.

cc @whatwg/http @clelland @mikewest @domenic 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1053

Received on Monday, 13 July 2020 10:56:23 UTC