| 209 | }; |
| 210 | |
| 211 | void run_http_request(const td::IPAddress &addr, HttpCallback::RequestType request_type, std::string url, |
| 212 | std::vector<std::pair<std::string, std::string>> headers, std::string payload, double timeout, |
| 213 | std::unique_ptr<HttpRequestCallback> callback) { |
| 214 | auto req = std::make_shared<HttpClientSession>(io_context(), addr, request_type, std::move(url), std::move(headers), |
| 215 | std::move(payload), timeout, std::move(callback)); |
| 216 | req->run(); |
| 217 | } |
| 218 | |
| 219 | } // namespace http |
| 220 |
no test coverage detected