| 1 | #ifndef CPR_CONNECT_TIMEOUT_H |
| 2 | #define CPR_CONNECT_TIMEOUT_H |
| 3 | |
| 4 | #include "cpr/timeout.h" |
| 5 | |
| 6 | namespace cpr { |
| 7 | |
| 8 | class ConnectTimeout : public Timeout { |
| 9 | public: |
| 10 | // NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions) |
| 11 | ConnectTimeout(const std::chrono::milliseconds& duration) : Timeout{duration} {} |
| 12 | // NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions) |
| 13 | ConnectTimeout(const std::int32_t& milliseconds) : Timeout{milliseconds} {} |
| 14 | }; |
| 15 | |
| 16 | } // namespace cpr |
| 17 | |
| 18 | #endif |
| 19 | |