#include <http_connection.h>
|
| static constexpr std::chrono::seconds | TIMEOUT () |
Definition at line 38 of file http_connection.h.
◆ t_http_connection()
Definition at line 48 of file http_connection.h.
49 : mp_http_client(p_http_client)
50 , m_ok(false)
51 {
52 m_ok = mp_http_client->connect(
TIMEOUT());
53 }
◆ ~t_http_connection()
| tools::t_http_connection::~t_http_connection |
( |
| ) |
|
|
inline |
Definition at line 55 of file http_connection.h.
56 {
57 if (m_ok)
58 {
59 try { mp_http_client->disconnect(); }
60 catch (...) { }
61 }
62 }
◆ is_open()
| bool tools::t_http_connection::is_open |
( |
| ) |
const |
|
inline |
◆ TIMEOUT()
| constexpr std::chrono::seconds tools::t_http_connection::TIMEOUT |
( |
| ) |
|
|
inlinestaticconstexpr |
Definition at line 43 of file http_connection.h.
44 {
45 return std::chrono::minutes(3) + std::chrono::seconds(30);
46 }
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/common/http_connection.h