mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 14:20:21 +00:00
LibWeb: Add getters and setters for Fetch::Header's members
This commit is contained in:
parent
dc6fb43d26
commit
fd52119ca3
Notes:
sideshowbarker
2024-07-17 17:38:29 +09:00
Author: https://github.com/linusg
Commit: fd52119ca3
Pull-request: https://github.com/SerenityOS/serenity/pull/15359
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/davidot ✅
Reviewed-by: https://github.com/kennethmyhra
1 changed files with 8 additions and 0 deletions
|
@ -35,6 +35,14 @@ public:
|
|||
|
||||
virtual ~Headers() override;
|
||||
|
||||
[[nodiscard]] Infrastructure::HeaderList& header_list() { return m_header_list; }
|
||||
[[nodiscard]] Infrastructure::HeaderList const& header_list() const { return m_header_list; }
|
||||
void set_header_list(Infrastructure::HeaderList header_list) { m_header_list = move(header_list); }
|
||||
|
||||
[[nodiscard]] Guard guard() const { return m_guard; }
|
||||
void set_guard(Guard guard) { m_guard = guard; }
|
||||
|
||||
// JS API functions
|
||||
WebIDL::ExceptionOr<void> append(Infrastructure::Header);
|
||||
WebIDL::ExceptionOr<void> append(String const& name, String const& value);
|
||||
WebIDL::ExceptionOr<void> delete_(String const& name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue