![]() |
Mantis App v0.1.13
|
Wrapper around http-lib to add middleware support and context values to be passed from middlewares up to the last handler. More...
#include <httplib.h>
#include <unordered_map>
#include <any>
#include <functional>
#include <string>
#include <vector>
#include <nlohmann/json.hpp>
#include "logging.h"
Go to the source code of this file.
Classes | |
class | mantis::Context |
struct | mantis::RouteKeyHash |
struct | mantis::RouteHandler |
Struct encompassing the list of middlewares and the handler function registered to a specific route. More... | |
class | mantis::RouteRegistry |
class | mantis::HttpUnit |
Namespaces | |
namespace | mantis |
router.h | |
Macros | |
#define | REQUEST_HANDLED false |
#define | REQUEST_PENDING true |
Typedefs | |
using | mantis::Request = httplib::Request |
| |
using | mantis::Response = httplib::Response |
| |
using | mantis::Middleware = std::function< bool(const Request &, Response &, Context &)> |
| |
using | mantis::RouteHandlerFunc = std::function< void(const Request &, Response &, Context &)> |
| |
using | mantis::Method = std::string |
| |
using | mantis::Path = std::string |
| |
using | mantis::RouteKey = std::pair< Method, Path > |
| |
Wrapper around http-lib to add middleware support and context values to be passed from middlewares up to the last handler.
Created by allan on 12/05/2025.
#define REQUEST_HANDLED false |
#define REQUEST_PENDING true |