![]() |
RMVL
2.4.0-dev
Robotic Manipulation and Vision Library
|
异步 IO 的应用层网络通信框架 更多...
类 | |
| struct | rm::URLParseInfo |
| URL 解析结果 更多... | |
| struct | rm::Request |
| HTTP 请求结构 更多... | |
| struct | rm::Response |
| HTTP 响应结构 更多... | |
| class | rm::Router |
| HTTP 路由器 目前支持的 HTTP 方法包括 GET、POST、HEAD 和 DELETE 更多... | |
| class | rm::Router::RoutePattern |
| 路由模式匹配器 更多... | |
| struct | rm::Router::RouteEntry |
| 路由条目:路由模式 + 处理器 更多... | |
| class | rm::async::Webapp |
| Web 应用程序框架 更多... | |
命名空间 | |
| namespace | rm |
| namespace | rm::requests |
| namespace | rm::async |
| namespace | rm::async::requests |
类型定义 | |
| using | rm::ResponseMiddleware = std::function<void(const Request &, Response &)> |
| 响应中间件类型 | |
| using | rm::RouteHandler = std::function<void(const Request &, Response &)> |
| 路由类型 | |
枚举 | |
| enum class | rm::HTTPMethod : uint8_t { rm::HTTPMethod::Get , rm::HTTPMethod::Post , rm::HTTPMethod::Put , rm::HTTPMethod::Delete , rm::HTTPMethod::Patch , rm::HTTPMethod::Head , rm::HTTPMethod::Options , rm::HTTPMethod::Trace , rm::HTTPMethod::Connect , rm::HTTPMethod::Unknown } |
| HTTP 请求方法 更多... | |
函数 | |
| URLParseInfo | rm::parseURL (std::string_view url) |
| 解析 URL | |
| std::tuple< std::string, bool > | rm::parseDNS (std::string_view hostname) |
| 域名解析 | |
| ResponseMiddleware | rm::statics (std::string_view url, std::string_view root) |
| 静态路由中间件,处理对指定 URL 路径的静态文件请求 | |
| ResponseMiddleware | rm::cors () |
| 跨域资源共享 CORS 中间件,为响应添加 CORS 头部信息 | |
| Response | rm::requests::request (HTTPMethod method, std::string_view url, const std::vector< std::string > &querys={}, const std::unordered_map< std::string, std::string > &heads={}, std::string_view body="") |
| 发出同步 HTTP 请求 | |
| Response | rm::requests::get (std::string_view url, const std::vector< std::string > &querys={}, const std::unordered_map< std::string, std::string > &heads={}) |
| 发出同步 GET 请求 | |
| Response | rm::requests::post (std::string_view url, std::string_view body, const std::vector< std::string > &querys={}, const std::unordered_map< std::string, std::string > &heads={}) |
| 发出同步 POST 请求 | |
| Response | rm::requests::del (std::string_view url, const std::vector< std::string > &querys={}, const std::unordered_map< std::string, std::string > &heads={}) |
| 发出同步 DELETE 请求 | |
| Task< Response > | rm::async::requests::request (IOContext &io_context, HTTPMethod method, std::string_view url, const std::vector< std::string > &querys={}, const std::unordered_map< std::string, std::string > &heads={}, std::string_view body="") |
| 发出异步 HTTP 请求 | |
| Task< Response > | rm::async::requests::get (IOContext &io_context, std::string_view url, const std::vector< std::string > &querys={}, const std::unordered_map< std::string, std::string > &heads={}) |
| 发出异步 GET 请求 | |
| Task< Response > | rm::async::requests::post (IOContext &io_context, std::string_view url, std::string_view body, const std::vector< std::string > &querys={}, const std::unordered_map< std::string, std::string > &heads={}) |
| 发出异步 POST 请求 | |
| Task< Response > | rm::async::requests::del (IOContext &io_context, std::string_view url, const std::vector< std::string > &querys={}, const std::unordered_map< std::string, std::string > &heads={}) |
| 发出异步 DELETE 请求 | |
异步 IO 的应用层网络通信框架