![]() |
RMVL
2.3.0
Robotic Manipulation and Vision Library
|
异步 IO 的应用层网络通信框架 更多...
类 | |
| struct | rm::URLParseInfo |
| URL 解析结果 更多... | |
| struct | rm::Request |
| HTTP 请求 更多... | |
| struct | rm::Response |
| HTTP 响应 更多... | |
| class | rm::async::Webapp |
| Web 应用程序框架 更多... | |
| class | rm::async::Webapp::RoutePattern |
| 路由模式匹配器 更多... | |
| struct | rm::async::Webapp::RouteEntry |
| 路由条目:路由模式 + 处理器 更多... | |
命名空间 | |
| namespace | rm |
| namespace | rm::requests |
| namespace | rm::async |
| namespace | rm::async::requests |
类型定义 | |
| using | rm::ResponseMiddleware = std::function<void(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) |
| 域名解析 | |
| void | rm::cors (Response &res) |
| 跨域资源共享 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 的应用层网络通信框架