# HG changeset patch # User Roman Arutyunyan # Date 1593161880 -10800 # Node ID c8cabb5d45f566a8fa84a63c43e23c6d42e5f84a # Parent a6675a9765605399d37a797c17a09390442a1440 HTTP/3: introduced ngx_http_v3_get_module_srv_conf() macro. The macro helps to access a module's server configuration from a QUIC stream context. diff --git a/src/http/v3/ngx_http_v3.h b/src/http/v3/ngx_http_v3.h --- a/src/http/v3/ngx_http_v3.h +++ b/src/http/v3/ngx_http_v3.h @@ -61,6 +61,12 @@ typedef struct { } ngx_http_v3_connection_t; +#define ngx_http_v3_get_module_srv_conf(c, module) \ + ngx_http_get_module_srv_conf( \ + ((ngx_http_v3_connection_t *) c->qs->parent->data)->hc.conf_ctx, \ + module) + + typedef struct { ngx_str_t name; ngx_str_t value;