summaryrefslogtreecommitdiffhomepage
path: root/src/http/v3/ngx_http_v3.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/v3/ngx_http_v3.h')
-rw-r--r--src/http/v3/ngx_http_v3.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/v3/ngx_http_v3.h b/src/http/v3/ngx_http_v3.h
index 45d1a3671..9ee809fa1 100644
--- a/src/http/v3/ngx_http_v3.h
+++ b/src/http/v3/ngx_http_v3.h
@@ -74,6 +74,9 @@
#define NGX_HTTP_V3_ERR_DECODER_STREAM_ERROR 0x202
+#define ngx_http_v3_get_session(c) \
+ ((ngx_http_v3_connection_t *) (c)->quic->parent->data)
+
#define ngx_http_v3_get_module_loc_conf(c, module) \
ngx_http_get_module_loc_conf( \
((ngx_http_v3_connection_t *) c->quic->parent->data)->hc.conf_ctx, \