![]() |
MySQL 8.0.43
Source Code Documentation
|
handler for REST API calls. More...
#include <rest_api_component.h>
Public Member Functions | |
| RestApiHandler (const std::string &require_realm, HttpMethod::Bitset allowed_methods) | |
| bool | try_handle_request (HttpRequest &req, const std::string &base_path, const std::vector< std::string > &path_matches) override |
| try to handle the request. More... | |
| virtual bool | on_handle_request (HttpRequest &req, const std::string &base_path, const std::vector< std::string > &path_matches)=0 |
Public Member Functions inherited from BaseRestApiHandler | |
| BaseRestApiHandler ()=default | |
| BaseRestApiHandler (const BaseRestApiHandler &)=default | |
| BaseRestApiHandler (BaseRestApiHandler &&)=default | |
| BaseRestApiHandler & | operator= (const BaseRestApiHandler &)=default |
| BaseRestApiHandler & | operator= (BaseRestApiHandler &&)=default |
| virtual | ~BaseRestApiHandler () |
Private Attributes | |
| std::string | require_realm_ |
| HttpMethod::Bitset | allowed_methods_ |
handler for REST API calls.
|
inline |
|
pure virtual |
Implemented in RestConnectionPoolConfig, RestConnectionPoolList, RestConnectionPoolStatus, RestClustersList, RestClustersNodes, RestMetadataCacheConfig, RestMetadataCacheList, RestMetadataCacheStatus, RestRouterStatus, RestRoutingBlockedHosts, RestRoutingConfig, RestRoutingConnections, RestRoutingDestinations, RestRoutingHealth, RestRoutingList, RestRoutingRoutesStatus, and RestRoutingStatus.
|
overridevirtual |
try to handle the request.
| true | request has been handled and a response has been sent |
| false | request has not been handled (no response has been sent) |
Implements BaseRestApiHandler.
|
private |
|
private |