|
MantisBase v0.3.4
|
Type definitions and aliases for MantisBase. More...
#include <httplib.h>#include <nlohmann/json.hpp>

Go to the source code of this file.
Namespaces | |
| namespace | mb |
| router.h | |
Macros | |
| #define | REQUEST_HANDLED HandlerResponse::Handled; |
| #define | REQUEST_PENDING HandlerResponse::Unhandled; |
Typedefs | |
| using | mb::HandlerResponse = httplib::Server::HandlerResponse |
| using | mb::HandlerFn = std::function< void(MantisRequest &, MantisResponse &)> |
| |
| using | mb::HandlerWithContentReaderFn = std::function< void(MantisRequest &, MantisResponse &, MantisContentReader &)> |
| |
| using | mb::MiddlewareFn = std::function< HandlerResponse(MantisRequest &, MantisResponse &)> |
| |
| using | mb::Middlewares = std::vector< MiddlewareFn > |
| |
| using | mb::Method = std::string |
| |
| using | mb::Path = std::string |
| |
| using | mb::RouteKey = std::pair< Method, Path > |
| |
Type definitions and aliases for MantisBase.
Defines common types used throughout the MantisBase library including handler functions, middleware types, and route keys.
| #define REQUEST_HANDLED HandlerResponse::Handled; |
| #define REQUEST_PENDING HandlerResponse::Unhandled; |