diff options
| -rw-r--r-- | zenhttp/httpclient.cpp | 15 | ||||
| -rw-r--r-- | zenhttp/include/zenhttp/httpclient.h | 6 |
2 files changed, 20 insertions, 1 deletions
diff --git a/zenhttp/httpclient.cpp b/zenhttp/httpclient.cpp index 78ecef2c0..7e3e9d374 100644 --- a/zenhttp/httpclient.cpp +++ b/zenhttp/httpclient.cpp @@ -137,6 +137,21 @@ HttpClient::TransactPackage(std::string_view Url, CbPackage Package) } HttpClient::Response +HttpClient::Put(std::string_view Url, IoBuffer Payload) +{ + ZEN_UNUSED(Url); + ZEN_UNUSED(Payload); + return {}; +} + +HttpClient::Response +HttpClient::Get(std::string_view Url) +{ + ZEN_UNUSED(Url); + return {}; +} + +HttpClient::Response HttpClient::Delete(std::string_view Url) { ZEN_UNUSED(Url); diff --git a/zenhttp/include/zenhttp/httpclient.h b/zenhttp/include/zenhttp/httpclient.h index 7d9db7198..3e342f2bd 100644 --- a/zenhttp/include/zenhttp/httpclient.h +++ b/zenhttp/include/zenhttp/httpclient.h @@ -23,7 +23,9 @@ namespace zen { class CbPackage; -/** Asynchronous HTTP client implementation for Zen use cases +/** HTTP client implementation for Zen use cases + + Currently simple and synchronous, should become lean and asynchronous */ class HttpClient { @@ -37,6 +39,8 @@ public: IoBuffer ResponsePayload; // Note: this also includes the content type }; + [[nodiscard]] Response Put(std::string_view Url, IoBuffer Payload); + [[nodiscard]] Response Get(std::string_view Url); [[nodiscard]] Response TransactPackage(std::string_view Url, CbPackage Package); [[nodiscard]] Response Delete(std::string_view Url); |