]> git.kaiwu.me - nginx.git/commit
Upstream: early hints support.
authorRoman Arutyunyan <arut@nginx.com>
Fri, 15 Nov 2024 04:23:53 +0000 (08:23 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Thu, 19 Jun 2025 06:19:57 +0000 (10:19 +0400)
commit662c1dd2a97afd6c7ca09b8f5a74347ee017b86b
treed1d7ada1eb9149fc10c77e4aa73892b7a9863a54
parentea001feb10a294ccd53c896b9919f17f5cbda468
Upstream: early hints support.

The change implements processing upstream early hints response in
ngx_http_proxy_module and ngx_http_grpc_module.  A new directive
"early_hints" enables sending early hints to the client.  By default,
sending early hints is disabled.

Example:

    map $http_sec_fetch_mode $early_hints {
        navigate $http2$http3;
    }

    early_hints $early_hints;

    proxy_pass http://example.com;
13 files changed:
src/http/modules/ngx_http_grpc_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/ngx_http.c
src/http/ngx_http.h
src/http/ngx_http_core_module.c
src/http/ngx_http_core_module.h
src/http/ngx_http_header_filter_module.c
src/http/ngx_http_request.h
src/http/ngx_http_upstream.c
src/http/ngx_http_upstream.h
src/http/v2/ngx_http_v2.h
src/http/v2/ngx_http_v2_filter_module.c
src/http/v3/ngx_http_v3_filter_module.c