HTTP 服务器
更多...
#include <rmvl/io/netapp.hpp>
HTTP 服务器
负责 TCP 监听和连接调度,应用路由与中间件由 Webapp 提供。
◆ HttpServer()
| rm::async::HttpServer::HttpServer |
( |
Webapp & | app | ) |
|
|
inlineexplicit |
◆ listen()
| void rm::async::HttpServer::listen |
( |
uint16_t | port, |
|
|
std::function< void()> | callback = nullptr ) |
|
inline |
◆ running()
| bool rm::async::HttpServer::running |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ spin()
| Task rm::async::HttpServer::spin |
( |
| ) |
|
|
nodiscard |
◆ spinWithoutSigint()
| Task rm::async::HttpServer::spinWithoutSigint |
( |
| ) |
|
|
nodiscard |
◆ stop()
| void rm::async::HttpServer::stop |
( |
| ) |
|
|
inlinenoexcept |