diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-04-12 23:49:02 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-04-12 23:49:02 +0800 |
| commit | afca951b11e38ba229ee986a06242c5a358e9342 (patch) | |
| tree | e8ec778599d815806f697fb3887fbd5c0e5211d0 /include/ricochet/net/http_client.hh | |
| parent | 5f459c7eaf9577292dd7bbf4b30164b3f53e79f3 (diff) | |
| download | rwebbrowser-afca951b11e38ba229ee986a06242c5a358e9342.tar.gz rwebbrowser-afca951b11e38ba229ee986a06242c5a358e9342.tar.xz | |
feat: implement HTTP POST support for form submissions and add input value persistence
Diffstat (limited to 'include/ricochet/net/http_client.hh')
| -rw-r--r-- | include/ricochet/net/http_client.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ricochet/net/http_client.hh b/include/ricochet/net/http_client.hh index 2dd7419..45c92e8 100644 --- a/include/ricochet/net/http_client.hh +++ b/include/ricochet/net/http_client.hh @@ -51,7 +51,9 @@ public: * @param url Target URL, for example "http://example.com" * @return Returns HttpResponse on success, returns an error message string on failure */ - std::expected<HttpResponse, std::string> fetch( std::string_view url ) const; + std::expected<HttpResponse, std::string> fetch( std::string_view url, + std::string_view method = "GET", + std::string_view body = "" ) const; private: }; |
