Support DNS resolving via libc-ares

This commit is contained in:
Vitaliy Filippov
2026-03-20 21:00:32 +03:00
parent 7207d0fa75
commit 96473f15f9
18 changed files with 134 additions and 42 deletions
+2 -2
View File
@@ -46,10 +46,10 @@ struct http_message_t
// Opened websocket or keepalive HTTP connection
struct http_co_t;
http_context_t* http_context_init(const std::string & ssl_cert, const std::string & ssl_key,
http_context_t* http_context_init(timerfd_manager_t *tfd, const std::string & ssl_cert, const std::string & ssl_key,
const std::string & ssl_ca, bool verify_peer, std::string & error);
void http_context_destroy(http_context_t *ctx);
http_co_t* http_init(timerfd_manager_t *tfd, http_context_t *ctx = NULL);
http_co_t* http_init(http_context_t *ctx = NULL);
void open_websocket(http_co_t *handler, const std::string & host, const std::string & path,
const http_options_t & options, std::function<void(http_message_t *msg)> on_message);
void http_request(http_co_t *handler, const std::string & host, const std::string & request,