mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibHTTP: Make HttpRequest default-movable
Otherwise, clangd correctly warns that this type is only copyable.
This commit is contained in:
parent
f253246a6c
commit
db1bcb2c56
Notes:
github-actions[bot]
2024-10-28 22:42:46 +00:00
Author: https://github.com/trflynn89
Commit: db1bcb2c56
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2009
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/ByteString.h>
|
||||
#include <AK/Noncopyable.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibCore/Forward.h>
|
||||
|
@ -64,6 +65,8 @@ public:
|
|||
HttpRequest() = default;
|
||||
~HttpRequest() = default;
|
||||
|
||||
AK_MAKE_DEFAULT_MOVABLE(HttpRequest);
|
||||
|
||||
ByteString const& resource() const { return m_resource; }
|
||||
HeaderMap const& headers() const { return m_headers; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue