aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-15 22:45:09 +0200
committerStefan Boberg <[email protected]>2021-09-15 22:45:09 +0200
commit8bc12a6228c15f920b48dbf5bc146ea5ed33b5f4 (patch)
tree134f2c2c918e478ed03f4c7051d8c718f45dc0fb /zenhttp/include
parentHooked up zenhttp to the test framework so tests actually run as part of zens... (diff)
downloadzen-8bc12a6228c15f920b48dbf5bc146ea5ed33b5f4.tar.xz
zen-8bc12a6228c15f920b48dbf5bc146ea5ed33b5f4.zip
Added some placeholder HttpClient functions to be fleshed out
Diffstat (limited to 'zenhttp/include')
-rw-r--r--zenhttp/include/zenhttp/httpclient.h6
1 files changed, 5 insertions, 1 deletions
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);