feat: Dosguard API weights (#2082)

Experimental support for Dosguard API weights.
This commit is contained in:
Sergey Kuznetsov
2025-05-13 15:02:21 +01:00
committed by GitHub
parent d02da5d28a
commit b87b32db86
42 changed files with 1653 additions and 329 deletions

View File

@@ -82,6 +82,13 @@ public:
throw std::logic_error("web server can not send the shared payload");
}
/**
* @brief Send a "slow down" error response to the client.
*
* @param request The original request that triggered the rate limiting
*/
virtual void
sendSlowDown(std::string const& request) = 0;
/**
* @brief Get the subscription context for this connection.
*