Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
app::OnConnectCheck Class Reference

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::Responseoperator() (web::ng::Connection const &connection)
 Check if the connection is allowed to proceed.
 

Detailed Description

A function object that checks if the connection is allowed to proceed.

Constructor & Destructor Documentation

◆ OnConnectCheck()

app::OnConnectCheck::OnConnectCheck ( web::dosguard::DOSGuardInterface & dosguard)

Construct a new OnConnectCheck object.

Parameters
dosguardThe DOSGuardInterface to use for checking the connection.

Member Function Documentation

◆ operator()()

std::expected< void, web::ng::Response > app::OnConnectCheck::operator() ( web::ng::Connection const & connection)

Check if the connection is allowed to proceed.

Parameters
connectionThe connection to check.
Returns
A response if the connection is not allowed to proceed or void otherwise.

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