Clio develop
The XRP Ledger API server.
|
Interface for determining request weights in DOS protection. More...
#include <WeightsInterface.hpp>
Public Member Functions | |
virtual size_t | requestWeight (boost::json::object const &request) const =0 |
Calculate the weight of a request. | |
Interface for determining request weights in DOS protection.
This interface defines the contract for classes that calculate weights for incoming requests, which is used for DOS protection mechanisms.
|
pure virtual |
Calculate the weight of a request.
request | The JSON object representing the request |
Implemented in web::dosguard::Weights.