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:
parent
163ddf1d73
commit
b46667639f
3 changed files with 16 additions and 16 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue