diff options
Diffstat (limited to 'src/zenhttp/include')
| -rw-r--r-- | src/zenhttp/include/zenhttp/httpclient.h | 2 |
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); |