deno icon indicating copy to clipboard operation
deno copied to clipboard

feat(ext/fetch): add Headers#getSetCookie

Open lucacasonato opened this issue 3 years ago • 2 comments

Spec change: https://github.com/whatwg/fetch/pull/1346 Tests: https://github.com/web-platform-tests/wpt/pull/31442 (ran against this PR and they all pass)

lucacasonato avatar Jan 30 '22 20:01 lucacasonato

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 02 '22 03:04 stale[bot]

Now that the spec PR is about to land, this PR should be reopened.

andreubotella avatar Feb 06 '23 23:02 andreubotella

Hey, aside from web-platform-tests/wpt#31442, I also opened web-platform-tests/wpt#38437 with some extra tests to address some of the review feedback from the Webkit implementation. Note that the "Set-Cookie is a forbidden response header" test is about browser behavior and doesn't apply to Deno.

andreubotella avatar Feb 09 '23 21:02 andreubotella

Tried to use this today, was missing in Deno

e3dio avatar May 24 '23 23:05 e3dio

For the record, this implementation is correct according to the spec as it is now. The only changes in the spec text since were editorial. There is one failing test in fetch/api/headers/header-setcookie.any.js, that for Set-Cookie being a forbidden response header, that Deno fails intentionally (and which will eventually be standardized by the fetch work for server-side runtimes in WinterCG). So the only thing that's blocking this PR from landing is resolving the merge conflicts.

andreubotella avatar May 25 '23 00:05 andreubotella