blob: 711384ddcace8363b48b3ee6b67cf0fa127d05e2 (
plain) (
blame)
1
2
3
4
5
6
|
const headers = new Headers();
headers.append("Set-Cookie", "a=1");
headers.append("Set-Cookie", "b=1; Secure");
console.log(headers.getAll("Set-Cookie")); // ["a=1", "b=1; Secure"]
console.log(headers.toJSON()); // { "set-cookie": "a=1, b=1; Secure" }
|