aboutsummaryrefslogtreecommitdiff
path: root/include/ricochet/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/ricochet/net')
-rw-r--r--include/ricochet/net/http_client.hh4
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:
};