aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-08-21 12:55:51 +0200
committerGitHub <[email protected]>2023-08-21 12:55:51 +0200
commitd2ca9955853a4c49a0c780b2790814368d3de8a6 (patch)
tree19f3cf4f8a69ca8724f39d7123f8c83b77135293 /src/zenhttp/include
parentfix trace close (#365) (diff)
downloadzen-d2ca9955853a4c49a0c780b2790814368d3de8a6.tar.xz
zen-d2ca9955853a4c49a0c780b2790814368d3de8a6.zip
oplog mirror support (#367)
feature: added oplog-mirror command. this can be invoked to export oplog contents to corresponding files
Diffstat (limited to 'src/zenhttp/include')
-rw-r--r--src/zenhttp/include/zenhttp/httpclient.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zenhttp/include/zenhttp/httpclient.h b/src/zenhttp/include/zenhttp/httpclient.h
index 559d7e719..9ff4910bf 100644
--- a/src/zenhttp/include/zenhttp/httpclient.h
+++ b/src/zenhttp/include/zenhttp/httpclient.h
@@ -65,6 +65,8 @@ public:
// 2xx range)
bool IsSuccess() const noexcept;
inline explicit operator bool() const noexcept { return IsSuccess(); }
+
+ void ThrowError(std::string_view ErrorPrefix = "error");
};
[[nodiscard]] Response Put(std::string_view Url, const IoBuffer& Payload);