Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
web::dosguard::WeightsInterface Class Referenceabstract

Interface for determining request weights in DOS protection. More...

#include <WeightsInterface.hpp>

Inheritance diagram for web::dosguard::WeightsInterface:

Public Member Functions

virtual size_t requestWeight (boost::json::object const &request) const =0
 Calculate the weight of a request.
 

Detailed Description

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.

Member Function Documentation

◆ requestWeight()

virtual size_t web::dosguard::WeightsInterface::requestWeight ( boost::json::object const & request) const
pure virtual

Calculate the weight of a request.

Parameters
requestThe JSON object representing the request
Returns
The calculated weight of the request

Implemented in web::dosguard::Weights.


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