mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 05:11:37 +08:00
29 lines
556 B
C
29 lines
556 B
C
|
|
/*
|
|
* 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_PROTO "\x0Ahq-interop"
|
|
#define NGX_HTTP_QUIC_ALPN_DRAFT_FMT "\x05hq-%02uD"
|
|
|
|
|
|
#define ngx_http_quic_get_connection(c) \
|
|
((ngx_http_connection_t *) (c)->quic->parent->data)
|
|
|
|
|
|
ngx_int_t ngx_http_quic_init(ngx_connection_t *c);
|
|
|
|
|
|
#endif /* _NGX_HTTP_QUIC_H_INCLUDED_ */
|