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

@jasnell commented on this pull request.



> +   <li><p>If <var>jsValue</var> is an
+   <a href="https://tc39.es/ecma262/#sec-isinteger">integral number</a>,
+   return a <a>structured field integer</a> with <var>jsValue</var>'s value.
+
+   <li><p>Otherwise, return a <a>structured field decimal</a> with
+   <var>jsValue</var>'s value.

No, in that case the correct response would be to return null. The fallback would be to just use the existing get method. 

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

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

Received on Tuesday, 4 August 2026 04:31:03 UTC