1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:37:35 +00:00

LibWeb: Implement '5.4. Request class' from the Fetch API :^)

This commit is contained in:
Linus Groh 2022-09-25 19:33:13 +01:00
parent 5ad6283331
commit 9fb672e981
13 changed files with 1146 additions and 3 deletions

View file

@ -42,6 +42,8 @@ public:
[[nodiscard]] Guard guard() const { return m_guard; }
void set_guard(Guard guard) { m_guard = guard; }
WebIDL::ExceptionOr<void> fill(HeadersInit const&);
// JS API functions
WebIDL::ExceptionOr<void> append(Infrastructure::Header);
WebIDL::ExceptionOr<void> append(String const& name, String const& value);
@ -58,7 +60,6 @@ private:
explicit Headers(HTML::Window&);
WebIDL::ExceptionOr<void> fill(HeadersInit const&);
void remove_privileged_no_cors_headers();
// https://fetch.spec.whatwg.org/#concept-headers-header-list