Controller.
More...
#include <sese/net/http/HttpServletContext.h>
#include <set>
#include <vector>
#include <functional>
#include <utility>
Go to the source code of this file.
Controller.
- Author
- kaoru
- Version
- 0.1
- Date
- September 13, 2023
◆ SESE_CTRL
#define SESE_CTRL |
( |
| name, |
|
|
| ... ) |
Value:
public: \
name() : Controller() { \
} \
\
private: \
__VA_ARGS__; \
}; \
void name::init()
Define a controller
- Parameters
-
name | Controller name |
... | Controller members |
◆ SESE_URL
#define SESE_URL |
( |
| name, |
|
|
| method, |
|
|
| url ) |
Value: this->servlets.emplace_back(method, url); \
Register a URL path
- Parameters
-
name | Internal name |
method | Expected HTTP method |
url | Registered URL link |
- Note
- <key> Required parameter key is passed as an HTTP header, {key} required parameter key is passed as a query parameter