Clio develop
The XRP Ledger API server.
|
A function object that handles the metrics endpoint. More...
#include <WebHandlers.hpp>
Public Member Functions | |
MetricsHandler (std::shared_ptr< web::AdminVerificationStrategy > adminVerifier) | |
Construct a new MetricsHandler object. | |
web::ng::Response | operator() (web::ng::Request const &request, web::ng::ConnectionMetadata &connectionMetadata, web::SubscriptionContextPtr, boost::asio::yield_context) |
The call of the function object. | |
A function object that handles the metrics endpoint.
app::MetricsHandler::MetricsHandler | ( | std::shared_ptr< web::AdminVerificationStrategy > | adminVerifier | ) |
Construct a new MetricsHandler object.
adminVerifier | The AdminVerificationStrategy to use for verifying the connection for admin access. |
web::ng::Response app::MetricsHandler::operator() | ( | web::ng::Request const & | request, |
web::ng::ConnectionMetadata & | connectionMetadata, | ||
web::SubscriptionContextPtr | , | ||
boost::asio::yield_context | ) |
The call of the function object.
request | The request to handle. |
connectionMetadata | The connection metadata. |