- From: Steven <notifications@github.com>
- Date: Fri, 29 Oct 2021 10:42:23 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1346/review/793304900@github.com>
@styfle commented on this pull request. > boolean has(ByteString name); undefined set(ByteString name, ByteString value); iterable<ByteString, ByteString>; }; </pre> -<p class=note>Unlike a <a for=/>header list</a>, a {{Headers}} object cannot represent more than one -`<code>Set-Cookie</code>` <a for=/>header</a>. In a way this is problematic as unlike all other -headers `<code>Set-Cookie</code>` headers cannot be combined, but since `<code>Set-Cookie</code>` -headers are not exposed to client-side JavaScript this is deemed an acceptable compromise. -Implementations could choose the more efficient {{Headers}} object representation even for a -<a for=/>header list</a>, as long as they also support an associated data structure for +<p class=note>Unlike a <a for=/>header list</a>, a {{Headers}} object combines the values of +multiple headers of the same name into a single header value. This is problematic for the +`<code>Set-Cookie</code>` header, as unlike all other headers it can not be safely combined. For ```suggestion `<code>Set-Cookie</code>` header, as unlike all other headers, it cannot be safely combined. For ``` -- 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/1346#pullrequestreview-793304900
Received on Friday, 29 October 2021 17:42:35 UTC