view src/http/modules/ngx_http_quic_module.h @ 8768:40d710a66aef quic

HTTP/3: ngx_http_v3_get_session() macro. It's used instead of accessing c->quic->parent->data directly. Apart from being simpler, it allows to change the way session is stored in the future by changing the macro.
author Roman Arutyunyan <arut@nginx.com>
date Fri, 30 Apr 2021 19:10:11 +0300
parents 554e11a325a9
children 9ec3e71f8a61
line wrap: on
line source


/*
 * Copyright (C) Nginx, Inc.
 * Copyright (C) Roman Arutyunyan
 */


#ifndef _NGX_HTTP_QUIC_H_INCLUDED_
#define _NGX_HTTP_QUIC_H_INCLUDED_


#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>


#define NGX_HTTP_QUIC_ALPN_ADVERTISE  "\x0Ahq-interop"
#define NGX_HTTP_QUIC_ALPN_DRAFT_FMT  "\x05hq-%02uD"


ngx_int_t ngx_http_quic_init(ngx_connection_t *c);


#endif /* _NGX_HTTP_QUIC_H_INCLUDED_ */