SNode.C
Loading...
Searching...
No Matches
JsonMiddleware.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 * Json Middleware 2020, 2021 Marlene Mayr, Anna Moser, Matteo Prock, Eric Thalhammer
6 * Github <MarleneMayr><moseranna><MatteoMatteoMatteo><peregrin-tuk>
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef EXPRESS_MIDDLEWARE_JSONMIDDLEWARE_H
23#define EXPRESS_MIDDLEWARE_JSONMIDDLEWARE_H
24
25#include "express/Router.h" // IWYU pragma: export
26
27#ifndef DOXYGEN_SHOULD_SKIP_THIS
28
29#endif /* DOXYGEN_SHOULD_SKIP_THIS */
30
31namespace express::middleware {
32
33 class JsonMiddleware : public Router {
34 public:
36
38
39 protected:
41
42 static class JsonMiddleware& instance();
43
44 private:
45 friend class JsonMiddleware& JsonMiddleware();
46 };
47
48 class JsonMiddleware& JsonMiddleware();
49
50} // namespace express::middleware
51
52#endif // EXPRESS_MIDDLEWARE_JSONMIDDLEWARE_H
#define APPLICATION(req, res)
Definition Router.h:45
JsonMiddleware & operator=(const JsonMiddleware &)=delete
JsonMiddleware(const JsonMiddleware &)=delete
static class JsonMiddleware & instance()
int main(int argc, char *argv[])