- From: Khafra <notifications@github.com>
- Date: Tue, 10 May 2022 10:01:06 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 10 May 2022 17:01:18 UTC
Looking at the spec, I can't find any mention of iterators for headers. Missing: - `Headers.forEach` (even MDN doesn't document it) - `Headers.values` - `Headers.entries` - `Headers.keys` If they aren't documented, it would be nice if "Headers Iterator" was defined, since it is not very clear. For example, it behaves like a generator, but doesn't have `.throw()` or `.return()` methods. Plus Firefox (&Deno) calls them "Headers Iterator" while Chrome calls it "Iterator" (checked using `new Headers().keys()[Symbol.toStringTag]`). Thanks 😄 Looking at https://github.com/denoland/deno/issues/981, it looks like they also implemented these methods using trial and error. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/1437 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/issues/1437@github.com>
Received on Tuesday, 10 May 2022 17:01:18 UTC