mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibWeb/Fetch: Support setting request priority from JS
This commit is contained in:
parent
4387d12159
commit
74d90338b1
Notes:
sideshowbarker
2024-07-17 06:24:08 +09:00
Author: https://github.com/jamierocks
Commit: 74d90338b1
Pull-request: https://github.com/SerenityOS/serenity/pull/24193
6 changed files with 23 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue