aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenhttp/include')
-rw-r--r--src/zenhttp/include/zenhttp/httpclient.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zenhttp/include/zenhttp/httpclient.h b/src/zenhttp/include/zenhttp/httpclient.h
index 41a7ce621..f00bbec63 100644
--- a/src/zenhttp/include/zenhttp/httpclient.h
+++ b/src/zenhttp/include/zenhttp/httpclient.h
@@ -125,6 +125,9 @@ public:
{
int ErrorCode;
std::string ErrorMessage;
+
+ /** True when the error is a transport-level connection failure (connect timeout, refused, DNS) */
+ bool IsConnectionError() const;
};
struct KeyValueMap