summaryrefslogtreecommitdiff
path: root/include/tgbot/net/HttpClient.h
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2023-01-29 18:17:12 +0300
committerGitHub <noreply@github.com>2023-01-29 18:17:12 +0300
commit4356f747596a42dd04766f9c7234fd1aded2eeda (patch)
tree8cea4cad5a8bc15e8213193743111f41a73e1461 /include/tgbot/net/HttpClient.h
parentab7ce1f7ae842c74f67f3576542aa68f5eff8ebb (diff)
parenta8defacf2ba9bc3029b16af48a539553f873866b (diff)
Merge pull request #257 from llnulldisk/master
Fix timeout issues (#251)
Diffstat (limited to 'include/tgbot/net/HttpClient.h')
-rw-r--r--include/tgbot/net/HttpClient.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tgbot/net/HttpClient.h b/include/tgbot/net/HttpClient.h
index a35dd7d..024c8ad 100644
--- a/include/tgbot/net/HttpClient.h
+++ b/include/tgbot/net/HttpClient.h
@@ -26,6 +26,8 @@ public:
* If at least 1 arg is marked as file, the content type of a request will be multipart/form-data, otherwise it will be application/x-www-form-urlencoded.
*/
virtual std::string makeRequest(const Url& url, const std::vector<HttpReqArg>& args) const = 0;
+
+ std::int32_t _timeout = 25;
};
}