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

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.
 

Detailed Description

A function object that handles the metrics endpoint.

Constructor & Destructor Documentation

◆ MetricsHandler()

app::MetricsHandler::MetricsHandler ( std::shared_ptr< web::AdminVerificationStrategy > adminVerifier)

Construct a new MetricsHandler object.

Parameters
adminVerifierThe AdminVerificationStrategy to use for verifying the connection for admin access.

Member Function Documentation

◆ operator()()

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.

Parameters
requestThe request to handle.
connectionMetadataThe connection metadata.
Returns
The response to the request.

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