LibWeb/Fetch: Support setting request priority from JS

This commit is contained in:
Jamie Mansfield 2024-05-04 00:17:24 +01:00 committed by Andrew Kaster
commit 74d90338b1
Notes: sideshowbarker 2024-07-17 06:24:08 +09:00
6 changed files with 23 additions and 1 deletions

View file

@ -37,6 +37,7 @@ struct RequestInit {
Optional<bool> keepalive;
Optional<JS::GCPtr<DOM::AbortSignal>> signal;
Optional<Bindings::RequestDuplex> duplex;
Optional<Bindings::RequestPriority> priority;
Optional<JS::Value> window;
// https://infra.spec.whatwg.org/#map-is-empty
@ -55,6 +56,7 @@ struct RequestInit {
|| keepalive.has_value()
|| signal.has_value()
|| duplex.has_value()
|| priority.has_value()
|| window.has_value());
}
};