summaryrefslogtreecommitdiffhomepage
path: root/src/http/v2/ngx_http_v2_module.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2023-05-16 16:30:08 +0400
committerRoman Arutyunyan <arut@nginx.com>2023-05-16 16:30:08 +0400
commitaefd862ab197c3ab49001fcf69be478aab5b0f4e (patch)
tree7c28971738b77c00264052ac32ee12f79fa2b1a4 /src/http/v2/ngx_http_v2_module.h
parentcb70d5954c65b5683bc1c104bbf2466b73f4aa2b (diff)
downloadnginx-aefd862ab197c3ab49001fcf69be478aab5b0f4e.tar.gz
nginx-aefd862ab197c3ab49001fcf69be478aab5b0f4e.tar.bz2
HTTP/2: "http2" directive.
The directive enables HTTP/2 in the current server. The previous way to enable HTTP/2 via "listen ... http2" is now deprecated. The new approach allows to share HTTP/2 and HTTP/0.9-1.1 on the same port. For SSL connections, HTTP/2 is now selected by ALPN callback based on whether the protocol is enabled in the virtual server chosen by SNI. This however only works since OpenSSL 1.0.2h, where ALPN callback is invoked after SNI callback. For older versions of OpenSSL, HTTP/2 is enabled based on the default virtual server configuration. For plain TCP connections, HTTP/2 is now auto-detected by HTTP/2 preface, if HTTP/2 is enabled in the default virtual server. If preface is not matched, HTTP/0.9-1.1 is assumed.
Diffstat (limited to 'src/http/v2/ngx_http_v2_module.h')
-rw-r--r--src/http/v2/ngx_http_v2_module.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/http/v2/ngx_http_v2_module.h b/src/http/v2/ngx_http_v2_module.h
index ca4a0bfc5..22a2d84ca 100644
--- a/src/http/v2/ngx_http_v2_module.h
+++ b/src/http/v2/ngx_http_v2_module.h
@@ -21,15 +21,6 @@ typedef struct {
typedef struct {
- size_t pool_size;
- ngx_uint_t concurrent_streams;
- ngx_uint_t concurrent_pushes;
- size_t preread_size;
- ngx_uint_t streams_index_mask;
-} ngx_http_v2_srv_conf_t;
-
-
-typedef struct {
size_t chunk_size;
ngx_flag_t push_preload;
@@ -39,7 +30,4 @@ typedef struct {
} ngx_http_v2_loc_conf_t;
-extern ngx_module_t ngx_http_v2_module;
-
-
#endif /* _NGX_HTTP_V2_MODULE_H_INCLUDED_ */