mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
This is a normative change in the Fetch spec. See: https://github.com/whatwg/fetch/commit/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
15 lines
484 B
Plaintext
15 lines
484 B
Plaintext
typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString>) HeadersInit;
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface Headers {
|
|
constructor(optional HeadersInit init);
|
|
|
|
undefined append(ByteString name, ByteString value);
|
|
undefined delete(ByteString name);
|
|
ByteString? get(ByteString name);
|
|
sequence<ByteString> getSetCookie();
|
|
boolean has(ByteString name);
|
|
undefined set(ByteString name, ByteString value);
|
|
iterable<ByteString, ByteString>;
|
|
};
|