|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
#include <orbit/legacy_namespaces.hpp>#include <string>#include <chrono>#include <functional>#include <memory>#include <orbit/http/HttpRequest.hpp>#include <orbit/http/ResponseWriter.hpp>#include <orbit/database/RedisClient.hpp>

Go to the source code of this file.
Classes | |
| class | orbit::middleware::DistributedRateLimiter |
| Fixed-window rate limiter shared across instances through Redis. More... | |
Namespaces | |
| namespace | orbit |
| namespace | orbit::middleware |
Functions | |
| auto | orbit::middleware::distributed_rate_limit (const std::string &redis_host, int redis_port, size_t max_requests, std::chrono::seconds window, DistributedRateLimiter::KeyFunction key=nullptr, bool allow_when_unavailable=false) |
| Creates a DistributedRateLimiter middleware; see its constructor for parameters. | |