Kurlyk
Loading...
Searching...
No Matches
HttpRateLimitDelay.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef _KURLYK_HTTP_RATE_LIMIT_DELAY_HPP_INCLUDED
3#define _KURLYK_HTTP_RATE_LIMIT_DELAY_HPP_INCLUDED
4
7
8namespace kurlyk {
9
20 template<typename Duration = std::chrono::milliseconds>
22 Duration duration;
25 };
26
27} // namespace kurlyk
28
29#endif // _KURLYK_HTTP_RATE_LIMIT_DELAY_HPP_INCLUDED
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
Result type for time-until-allowed queries.
Duration duration
Delay until the limit allows a request. 0 means ready now.
bool sequential_blocked
true if duration reflects Duration::max() because a sequential in-flight request is blocking.