mirror of
https://github.com/XRPLF/clio.git
synced 2026-08-22 05:00:52 +00:00
feat: Dosguard API weights (#2082)
Experimental support for Dosguard API weights.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user