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

A function object that handles the cache state check endpoint. More...

#include <WebHandlers.hpp>

Public Member Functions

 CacheStateHandler (data::LedgerCacheInterface const &cache)
 Construct a new CacheStateHandler object.
web::ng::Response operator() (web::ng::Request const &request, web::ng::ConnectionMetadata &, web::SubscriptionContextPtr, boost::asio::yield_context)
 The call of the function object.

Detailed Description

A function object that handles the cache state check endpoint.

Constructor & Destructor Documentation

◆ CacheStateHandler()

app::CacheStateHandler::CacheStateHandler ( data::LedgerCacheInterface const & cache)
inline

Construct a new CacheStateHandler object.

Parameters
cacheThe ledger cache to use.

Member Function Documentation

◆ operator()()

web::ng::Response app::CacheStateHandler::operator() ( web::ng::Request const & request,
web::ng::ConnectionMetadata & ,
web::SubscriptionContextPtr ,
boost::asio::yield_context  )

The call of the function object.

Parameters
requestThe request to handle.
Returns
The response to the request

The documentation for this class was generated from the following files:
  • /__w/clio/clio/src/app/WebHandlers.hpp
  • /__w/clio/clio/src/app/WebHandlers.cpp