Kurlyk
Loading...
Searching...
No Matches
kurlyk::HttpRateLimiter::LimitData Struct Reference

Stores data for an individual rate limit. More...

Public Attributes

long requests_per_period
 Max requests allowed in the period.
 
long period_ms
 Duration of the period in milliseconds.
 
long count
 Requests made in the current period.
 
time_point_t start_time
 Start time of the current rate period.
 

Detailed Description

Stores data for an individual rate limit.

Definition at line 148 of file HttpRateLimiter.hpp.

Member Data Documentation

◆ count

long kurlyk::HttpRateLimiter::LimitData::count

Requests made in the current period.

Definition at line 151 of file HttpRateLimiter.hpp.

◆ period_ms

long kurlyk::HttpRateLimiter::LimitData::period_ms

Duration of the period in milliseconds.

Definition at line 150 of file HttpRateLimiter.hpp.

◆ requests_per_period

long kurlyk::HttpRateLimiter::LimitData::requests_per_period

Max requests allowed in the period.

Definition at line 149 of file HttpRateLimiter.hpp.

◆ start_time

time_point_t kurlyk::HttpRateLimiter::LimitData::start_time

Start time of the current rate period.

Definition at line 152 of file HttpRateLimiter.hpp.


The documentation for this struct was generated from the following file: