$darkmode
#include <server.hpp>
Public Member Functions | |
| virtual std::unique_ptr< ServerRegistrar > | clone () const =0 |
| virtual std::unique_ptr< ServerRegistrar > | with_prefix (const std::string &static_prefix, const std::string &api_prefix) const =0 |
| virtual void | register_static_handler (const std::string &endpoint, cloe::Handler h)=0 |
| virtual void | register_api_handler (const std::string &endpoint, cloe::HandlerType t, cloe::Handler h)=0 |
Server registrar interface.
This lets you register static and API endpoints with the server. Get a new one from Server::server_registrar().