h3 icon indicating copy to clipboard operation
h3 copied to clipboard

implement `getResponseCookie` and `parseResponseCookies`

Open Hebilicious opened this issue 2 years ago • 1 comments

Describe the feature

https://github.com/nuxt/nuxt/pull/21940#issuecomment-1632784187

Additional information

  • [X] Would you be willing to help implement this feature?

Hebilicious avatar Aug 17 '23 14:08 Hebilicious

The parsing added in https://github.com/unjs/nitro/pull/1753 could be reused here (and should be extracted to cookie-es for that purpose, i.e. https://github.com/unjs/cookie-es/issues/17).

tobiasdiez avatar Sep 29 '23 07:09 tobiasdiez

Upcoming h3 v2 will be based on web apis with event.request.headers.getSetCookie() / event.response.headers.getSetCookie()

Properly parsing Set-Cookie can be done with parseSetCookie in latest cookie-es package.

pi0 avatar Jul 18 '24 22:07 pi0