Re: [whatwg/fetch] "Get" a structured header from a header list. (#983)

Well, you could reduce the caller algorithm slightly because of this as you no longer have to grab the header value separately. Fetch contains a lot of algorithms like that which make the ergonomics better and generally makes specifications easier to read.

Also, if at some point a header list is able to contain header values that do not need to be parsed because they are already of the correct type, we'd have one place to change to account for that rather than a dozen.

-- 
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/983#issuecomment-565483468

Received on Friday, 13 December 2019 15:29:35 UTC