mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
LibHTTP: Make HttpRequest default-movable
Otherwise, clangd correctly warns that this type is only copyable. (cherry picked from commit db1bcb2c5600c98a33f48fdb68e16ac68e5a8e25)
This commit is contained in:
1 parent
9614721bde
commit
5eaa3cc71f
1 file changed
+3
@@ -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; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user