capricorn86 / happy-dom

A JavaScript implementation of a web browser without its graphical user interface
MIT License
3.24k stars 194 forks source link

Implement the getSetCookie method of Headers #1315

Closed ushiboy closed 5 months ago

ushiboy commented 5 months ago

Is your feature request related to a problem? Please describe. In the happy-dom environment, the test fails because the getSetCookie method of Headers does not exist.

src/sample.test.ts > Headers.getSetCookie()
TypeError: headers.getSetCookie is not a function
 ❯ src/sample.test.ts:3:18
      1| test("Headers.getSetCookie()", () => {
      2|   const headers = new Headers();
      3|   expect(headers.getSetCookie()).toEqual([]);
       |                  ^
      4| 

Describe the solution you'd like I'd like to see Headers getSetCookie implemented according to the specification. see: https://developer.mozilla.org/en-US/docs/Web/API/Headers/getSetCookie

Describe alternatives you've considered None.

Additional context None.