mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:17:44 +00:00
LibWeb: Implement Headers.getSetCookie()
This is a normative change in the Fetch spec.
See: e4d3480
This also implements the changes to the 'sort and combine' algorithm,
which now treats "set-cookie" headers differently, and is exposed to JS
via the Headers' iterator.
Passes all 21 WPT tests :^)
http://wpt.live/fetch/api/headers/header-setcookie.any.html
This commit is contained in:
parent
6bce48e99b
commit
ee68eba0ac
4 changed files with 53 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2022-2023, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -50,6 +50,7 @@ public:
|
|||
WebIDL::ExceptionOr<void> append(DeprecatedString const& name, DeprecatedString const& value);
|
||||
WebIDL::ExceptionOr<void> delete_(DeprecatedString const& name);
|
||||
WebIDL::ExceptionOr<DeprecatedString> get(DeprecatedString const& name);
|
||||
WebIDL::ExceptionOr<Vector<DeprecatedString>> get_set_cookie();
|
||||
WebIDL::ExceptionOr<bool> has(DeprecatedString const& name);
|
||||
WebIDL::ExceptionOr<void> set(DeprecatedString const& name, DeprecatedString const& value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue