From d2ca9955853a4c49a0c780b2790814368d3de8a6 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 21 Aug 2023 12:55:51 +0200 Subject: oplog mirror support (#367) feature: added oplog-mirror command. this can be invoked to export oplog contents to corresponding files --- src/zenhttp/include/zenhttp/httpclient.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/zenhttp/include') 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); -- cgit v1.2.3