2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#ifndef EXPRESS_DISPATCHER_CONTROLLER_H
21#define EXPRESS_DISPATCHER_CONTROLLER_H
35#ifndef DOXYGEN_SHOULD_SKIP_THIS
47 const std::shared_ptr<web::http::
server::Response>& response);
60 void next(
const std::string& how)
const;
#define DECLARE_ROUTER_REQUESTMETHOD(METHOD)
#define APPLICATION(req, res)
void next(const std::string &how) const
const std::shared_ptr< Request > & getRequest()
Controller(const std::shared_ptr< web::http::server::Request > &request, const std::shared_ptr< web::http::server::Response > &response)
std::shared_ptr< Response > response
Controller(const Controller &controller)
void setCurrentRoute(Route *currentRoute)
void setRootRoute(RootRoute *rootRoute)
std::shared_ptr< Request > request
bool dispatchNext(const std::string &parentMountPath)
Controller & operator=(const Controller &controller) noexcept
const std::shared_ptr< Response > & getResponse()
void operator()(const std::string &how="") const
Next(Controller &controller)
Route & head(const Router &router) const
Route & all(const Router &router) const
Route & options(const Router &router) const
Route & connect(const Router &router) const
Route & post(const Router &router) const
Route & del(const Router &router) const
Router(const Router &)=default
Route & use(const Router &router) const
Route & get(const Router &router) const
Route & trace(const Router &router) const
Route & patch(const Router &router) const
void laxRouting(bool strict=false)
Route & put(const Router &router) const
std::shared_ptr< RootRoute > rootRoute
WebAppT(const std::string &name, const Router &router)
WebAppT(const std::string &name)
static void init(int argc, char *argv[])
static core::TickStatus tick(const utils::Timeval &timeOut=0)
static core::State state()
static int start(const utils::Timeval &timeOut={LONG_MAX, 0})
WebApp(const Router &router)
int main(int argc, char *argv[])