h3
h3 copied to clipboard
implement `getResponseCookie` and `parseResponseCookies`
Describe the feature
https://github.com/nuxt/nuxt/pull/21940#issuecomment-1632784187
Additional information
- [X] Would you be willing to help implement this feature?
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).
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.