如何在初始化时发送 HTTPS 请求

时间:2021-04-25 04:03:17

标签: c nginx https client

是否有任何现有的示例,如何在 NGINX 初始化时使用 NGINX 事件循环在没有 ngx_http_request_t 的情况下主动发送 HTTPS 请求?

也许我们可以使用 ngx_peer_connection_t(代表上游对等连接的连接对象。)

另见Extending NGINX - Module API - Main Module API - Structures - ngx_module_t - init_module

ngx_int_t (*init_module)(ngx_cycle_t *cycle)
//A hook into the module initiliasation phase. This happens prior to the master process forking.

ngx_int_t (*init_process)(ngx_cycle_t *cycle)
// A hook into the module initilisation in new process phase. This happens as the worker processes are forked.

Development guide - I/O events

0 个答案:

没有答案