diff options
author | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2023-01-29 14:54:20 +0100 |
---|---|---|
committer | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2023-01-29 14:54:20 +0100 |
commit | a8defacf2ba9bc3029b16af48a539553f873866b (patch) | |
tree | 8cea4cad5a8bc15e8213193743111f41a73e1461 /include/tgbot/net/HttpClient.h | |
parent | 443b769670046340e266893e00f947c9ce37462f (diff) |
Fix timeout issues (#251)
Diffstat (limited to 'include/tgbot/net/HttpClient.h')
-rw-r--r-- | include/tgbot/net/HttpClient.h | 2 |
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; }; } |