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

LibHTTP: Make HttpRequest return its method name as a StringView

This commit is contained in:
Lucas CHOLLET 2023-02-08 22:07:52 -05:00 committed by Jelle Raaijmakers
parent 163ddf1d73
commit b46667639f
3 changed files with 16 additions and 16 deletions

View file

@ -79,7 +79,7 @@ public:
ByteBuffer const& body() const { return m_body; }
void set_body(ByteBuffer&& body) { m_body = move(body); }
DeprecatedString method_name() const;
StringView method_name() const;
ErrorOr<ByteBuffer> to_raw_request() const;
void set_headers(HashMap<DeprecatedString, DeprecatedString> const&);
@ -96,6 +96,6 @@ private:
ByteBuffer m_body;
};
DeprecatedString to_deprecated_string(HttpRequest::Method);
StringView to_string_view(HttpRequest::Method);
}