From 2e99697d4922f37e9304ec360602fed71c8a306e Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Fri, 17 Oct 2025 11:36:49 +0200 Subject: add ability to abort http requests (#586) * add abort-check function to httpclient --- src/zenhttp/include/zenhttp/httpclient.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/zenhttp/include') diff --git a/src/zenhttp/include/zenhttp/httpclient.h b/src/zenhttp/include/zenhttp/httpclient.h index c1fc1efa6..b12bdefb8 100644 --- a/src/zenhttp/include/zenhttp/httpclient.h +++ b/src/zenhttp/include/zenhttp/httpclient.h @@ -114,7 +114,9 @@ class HttpClientBase; class HttpClient { public: - HttpClient(std::string_view BaseUri, const HttpClientSettings& Connectionsettings = {}); + HttpClient(std::string_view BaseUri, + const HttpClientSettings& Connectionsettings = {}, + std::function&& CheckIfAbortFunction = {}); ~HttpClient(); struct ErrorContext -- cgit v1.2.3