SNode.C
Loading...
Searching...
No Matches
Next.h
Go to the documentation of this file.
1/*
2 * SNode.C - a slim toolkit for network communication
3 * Copyright (C) Volker Christian <me@vchrist.at>
4 * 2020, 2021, 2022, 2023, 2024, 2025
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef EXPRESS_NEXT_H
21#define EXPRESS_NEXT_H
22
23#include "express/Controller.h" // IWYU pragma: export
24
25namespace express::dispatcher {
27} // namespace express::dispatcher
28
29#ifndef DOXYGEN_SHOULD_SKIP_THIS
30
31#include <string>
32
33#endif /* DOXYGEN_SHOULD_SKIP_THIS */
34
35namespace express {
36
37 class Next {
38 public:
39 explicit Next(Controller& controller);
40
41 void operator()(const std::string& how = "") const;
42
43 private:
45
47 };
48
49} // namespace express
50
51#endif // EXPRESS_NEXT_H
#define DECLARE_ROUTER_REQUESTMETHOD(METHOD)
Definition Router.h:48
#define APPLICATION(req, res)
Definition Router.h:45
void operator()(const std::string &how="") const
Definition Next.cpp:34
Next(Controller &controller)
Definition Next.cpp:30
Controller controller
Definition Next.h:44
Route & head(const Router &router) const
Definition Router.cpp:70
Route & all(const Router &router) const
Definition Router.cpp:61
Route & options(const Router &router) const
Definition Router.cpp:67
Route & connect(const Router &router) const
Definition Router.cpp:66
Route & post(const Router &router) const
Definition Router.cpp:64
Route & del(const Router &router) const
Definition Router.cpp:65
Router(const Router &)=default
Route & use(const Router &router) const
Definition Router.cpp:60
Route & get(const Router &router) const
Definition Router.cpp:62
Route & trace(const Router &router) const
Definition Router.cpp:68
Route & patch(const Router &router) const
Definition Router.cpp:69
void laxRouting(bool strict=false)
Definition Router.cpp:56
Route & put(const Router &router) const
Definition Router.cpp:63
std::shared_ptr< RootRoute > rootRoute
Definition Router.h:95
WebAppT(const std::string &name, const Router &router)
Definition WebAppT.h:58
WebAppT(const std::string &name)
Definition WebAppT.h:54
static void free()
Definition WebApp.cpp:50
static void init(int argc, char *argv[])
Definition WebApp.cpp:34
static void stop()
Definition WebApp.cpp:42
static core::TickStatus tick(const utils::Timeval &timeOut=0)
Definition WebApp.cpp:46
static core::State state()
Definition WebApp.cpp:54
static int start(const utils::Timeval &timeOut={LONG_MAX, 0})
Definition WebApp.cpp:38
WebApp(const Router &router)
Definition WebApp.cpp:30
int main(int argc, char *argv[])
Definition Config.h:37