Clio develop
The XRP Ledger API server.
|
A function object that checks if the connection is allowed to proceed. More...
#include <WebHandlers.hpp>
Public Member Functions | |
OnConnectCheck (web::dosguard::DOSGuardInterface &dosguard) | |
Construct a new OnConnectCheck object. | |
std::expected< void, web::ng::Response > | operator() (web::ng::Connection const &connection) |
Check if the connection is allowed to proceed. | |
A function object that checks if the connection is allowed to proceed.
app::OnConnectCheck::OnConnectCheck | ( | web::dosguard::DOSGuardInterface & | dosguard | ) |
Construct a new OnConnectCheck object.
dosguard | The DOSGuardInterface to use for checking the connection. |
std::expected< void, web::ng::Response > app::OnConnectCheck::operator() | ( | web::ng::Connection const & | connection | ) |
Check if the connection is allowed to proceed.
connection | The connection to check. |