diff options
| author | Dan Engelbrecht <[email protected]> | 2025-10-17 11:36:49 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-17 11:36:49 +0200 |
| commit | 2e99697d4922f37e9304ec360602fed71c8a306e (patch) | |
| tree | 5a0d241ae483ae870a8f4e7b7b548e11fc9f0c1d /src/zenhttp/include | |
| parent | exclude .sym and .psym (#585) (diff) | |
| download | zen-2e99697d4922f37e9304ec360602fed71c8a306e.tar.xz zen-2e99697d4922f37e9304ec360602fed71c8a306e.zip | |
add ability to abort http requests (#586)
* add abort-check function to httpclient
Diffstat (limited to 'src/zenhttp/include')
| -rw-r--r-- | src/zenhttp/include/zenhttp/httpclient.h | 4 |
1 files changed, 3 insertions, 1 deletions
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<bool()>&& CheckIfAbortFunction = {}); ~HttpClient(); struct ErrorContext |