Mercurial > hg > nginx
diff src/http/v3/ngx_http_v3.h @ 8453:c8cabb5d45f5 quic
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 26 Jun 2020 11:58:00 +0300 |
parents | 66feab03d9b7 |
children | 032cb35ce758 |
line wrap: on
line diff
--- 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;