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:
parent
5ad6283331
commit
9fb672e981
13 changed files with 1146 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue