HTTP 服务器
更多...
#include <rmvl/io/netapp.hpp>
HTTP 服务器
负责 TCP 监听和连接调度,应用路由与中间件由 Webapp 提供。
◆ HttpServer() [1/3]
| rm::async::HttpServer::HttpServer |
( |
Webapp & | app | ) |
|
|
inlineexplicit |
◆ HttpServer() [2/3]
| rm::async::HttpServer::HttpServer |
( |
const HttpServer & | | ) |
|
|
delete |
◆ HttpServer() [3/3]
| rm::async::HttpServer::HttpServer |
( |
HttpServer && | | ) |
|
|
deletenoexcept |
◆ ~HttpServer()
| rm::async::HttpServer::~HttpServer |
( |
| ) |
|
◆ listen()
| void rm::async::HttpServer::listen |
( |
uint16_t | port, |
|
|
std::function< void()> | callback = nullptr ) |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ 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 |