mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibHTTP: Make HttpRequest
return its method name as a StringView
This commit is contained in:
parent
163ddf1d73
commit
b46667639f
Notes:
sideshowbarker
2024-07-17 03:18:29 +09:00
Author: https://github.com/LucasChollet
Commit: b46667639f
Pull-request: https://github.com/SerenityOS/serenity/pull/19764
Reviewed-by: https://github.com/alimpfard ✅
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/shannonbooth
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