[whatwg/fetch] Return null if parsing a structured field value fails (#1056)

All usage of structured fields in the web platform should not distinguish between the header not being there and failing to parse per the structured field parsing algorithm.

This also aligns Fetch slightly with terminology changes in HTTP that more clearly separate headers and trailers.

A future change might rename other concepts to also align with that (e.g., header list to field list).

Fixes #1053.

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1056

-- Commit Summary --

  * Return null if parsing a structured field value fails

-- File Changes --

    M fetch.bs (26)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1056.patch
https://github.com/whatwg/fetch/pull/1056.diff

-- 
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/pull/1056

Received on Tuesday, 14 July 2020 08:59:22 UTC