diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2020-06-26 11:58:00 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2020-06-26 11:58:00 +0300 |
| commit | b7662c0e80003a676375be7d46071231321260e6 (patch) | |
| tree | 484a4adb0e65ca6a1f6f8c36f9d570513892c699 /src | |
| parent | 690e1bc50cf47257ce76eeed2c0392a64bee24b0 (diff) | |
| download | nginx-b7662c0e80003a676375be7d46071231321260e6.tar.gz nginx-b7662c0e80003a676375be7d46071231321260e6.tar.bz2 | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/v3/ngx_http_v3.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/v3/ngx_http_v3.h b/src/http/v3/ngx_http_v3.h index 29cc06ee9..3c5bb721c 100644 --- 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; |
