MySQL 8.0.39
Source Code Documentation
BaseRestApiHandler Class Referenceabstract

#include <rest_api_component.h>

Inheritance diagram for BaseRestApiHandler:
[legend]

Public Member Functions

 BaseRestApiHandler ()=default
 
 BaseRestApiHandler (const BaseRestApiHandler &)=default
 
 BaseRestApiHandler (BaseRestApiHandler &&)=default
 
BaseRestApiHandleroperator= (const BaseRestApiHandler &)=default
 
BaseRestApiHandleroperator= (BaseRestApiHandler &&)=default
 
virtual bool try_handle_request (HttpRequest &req, const std::string &base_path, const std::vector< std::string > &path_matches)=0
 try to handle the request. More...
 
virtual ~BaseRestApiHandler ()
 

Constructor & Destructor Documentation

◆ BaseRestApiHandler() [1/3]

BaseRestApiHandler::BaseRestApiHandler ( )
default

◆ BaseRestApiHandler() [2/3]

BaseRestApiHandler::BaseRestApiHandler ( const BaseRestApiHandler )
default

◆ BaseRestApiHandler() [3/3]

BaseRestApiHandler::BaseRestApiHandler ( BaseRestApiHandler &&  )
default

◆ ~BaseRestApiHandler()

BaseRestApiHandler::~BaseRestApiHandler ( )
virtualdefault

Member Function Documentation

◆ operator=() [1/2]

BaseRestApiHandler & BaseRestApiHandler::operator= ( BaseRestApiHandler &&  )
default

◆ operator=() [2/2]

BaseRestApiHandler & BaseRestApiHandler::operator= ( const BaseRestApiHandler )
default

◆ try_handle_request()

virtual bool BaseRestApiHandler::try_handle_request ( HttpRequest req,
const std::string &  base_path,
const std::vector< std::string > &  path_matches 
)
pure virtual

try to handle the request.

Returns
success
Return values
truerequest has been handled and a response has been sent
falserequest has not been handled (no response has been sent)

Implemented in RestApiHandler, and RestApiSpecHandler.


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