Re: [whatwg/fetch] Add getStructured/setStructured to Headers (PR #1943)

martinthomson left a comment (whatwg/fetch#1943)

What is the thinking about this sort of thing?

```js
const cc = response.headers.getStructured("Cache-Control", "dictionary");
```

Presumably, this just runs the string through the identified SF parser, which might work out fine (or not), caveat emptor and all that jazz.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1943#issuecomment-5173771809
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1943/c5173771809@github.com>

Received on Tuesday, 4 August 2026 02:06:53 UTC