2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#include "express/Controller.h"
44#include "core/EventLoop.h"
45#include "express/Request.h"
46#include "express/Response.h"
47#include "express/RootRoute.h"
49#ifndef DOXYGEN_SHOULD_SKIP_THIS
73 if (
this != &controller) {
109 if (how ==
"route") {
111 }
else if (how ==
"router") {
125 if (breakDispatching) {
129 return breakDispatching;
133 bool dispatched =
false;
156 return oldStrictRouting;
static unsigned long getTickCounter()
void next(const std::string &how) const
const std::shared_ptr< Request > & getRequest()
bool setStrictRouting(bool strictRouting)
Controller(const std::shared_ptr< web::http::server::Request > &request, const std::shared_ptr< web::http::server::Response > &response)
bool getStrictRouting() const
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 dispatch(Controller &controller)
bool dispatchNext(Controller &controller, const std::string &parentMountPath)