MySQL 9.1.0
Source Code Documentation
RestRouterStatus Class Reference

#include <rest_router_status.h>

Inheritance diagram for RestRouterStatus:
[legend]

Public Member Functions

 RestRouterStatus (const std::string &require_realm)
 
bool on_handle_request (http::base::Request &req, const std::string &base_path, const std::vector< std::string > &path_matches) override
 
- Public Member Functions inherited from RestApiHandler
 RestApiHandler (const std::string &require_realm, HttpMethod::Bitset allowed_methods)
 
bool try_handle_request (http::base::Request &req, const std::string &base_path, const std::vector< std::string > &path_matches) override
 try to handle the request. More...
 
- Public Member Functions inherited from BaseRestApiHandler
 BaseRestApiHandler ()=default
 
 BaseRestApiHandler (const BaseRestApiHandler &)=default
 
 BaseRestApiHandler (BaseRestApiHandler &&)=default
 
BaseRestApiHandleroperator= (const BaseRestApiHandler &)=default
 
BaseRestApiHandleroperator= (BaseRestApiHandler &&)=default
 
virtual ~BaseRestApiHandler ()
 

Static Public Attributes

static constexpr const char path_regex [] = "^/router/status$"
 

Private Attributes

std::chrono::system_clock::time_point running_since_
 
time_t last_modified_
 

Constructor & Destructor Documentation

◆ RestRouterStatus()

RestRouterStatus::RestRouterStatus ( const std::string &  require_realm)
inline

Member Function Documentation

◆ on_handle_request()

bool RestRouterStatus::on_handle_request ( http::base::Request req,
const std::string &  base_path,
const std::vector< std::string > &  path_matches 
)
overridevirtual

Implements RestApiHandler.

Member Data Documentation

◆ last_modified_

time_t RestRouterStatus::last_modified_
private

◆ path_regex

constexpr const char RestRouterStatus::path_regex[] = "^/router/status$"
staticconstexpr

◆ running_since_

std::chrono::system_clock::time_point RestRouterStatus::running_since_
private

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