Clio
develop
The XRP Ledger API server.
Theme:
Default
Round
Robot
Toggle main menu visibility
Loading...
Searching...
No Matches
WeightsInterface.hpp
1
#pragma once
2
3
#include <boost/json/object.hpp>
4
5
#include <cstddef>
6
7
namespace
web::dosguard {
8
15
class
WeightsInterface
{
16
public
:
17
virtual
~WeightsInterface
() =
default
;
18
25
[[nodiscard]]
virtual
size_t
26
requestWeight
(boost::json::object
const
& request)
const
= 0;
27
};
28
29
}
// namespace web::dosguard
web::dosguard::WeightsInterface
Interface for determining request weights in DOS protection.
Definition
WeightsInterface.hpp:15
web::dosguard::WeightsInterface::requestWeight
virtual size_t requestWeight(boost::json::object const &request) const =0
Calculate the weight of a request.
src
web
dosguard
WeightsInterface.hpp
Generated by
1.17.0