Kurlyk
Toggle main menu visibility
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
8
namespace
kurlyk
{
9
20
template
<
typename
Duration = std::chrono::milliseconds>
21
struct
RateLimitDelay
{
22
Duration
duration
;
23
bool
sequential_blocked
;
25
};
26
27
}
// namespace kurlyk
28
29
#endif
// _KURLYK_HTTP_RATE_LIMIT_DELAY_HPP_INCLUDED
kurlyk
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
kurlyk::RateLimitDelay
Result type for time-until-allowed queries.
Definition
HttpRateLimitDelay.hpp:21
kurlyk::RateLimitDelay::duration
Duration duration
Delay until the limit allows a request. 0 means ready now.
Definition
HttpRateLimitDelay.hpp:22
kurlyk::RateLimitDelay::sequential_blocked
bool sequential_blocked
true if duration reflects Duration::max() because a sequential in-flight request is blocking.
Definition
HttpRateLimitDelay.hpp:23
include
kurlyk
http
HttpRequestManager
HttpRateLimitDelay.hpp
Generated by
1.17.0