diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2024-11-15 08:23:53 +0400 |
|---|---|---|
| committer | Roman Arutyunyan <arutyunyan.roman@gmail.com> | 2025-06-19 10:19:57 +0400 |
| commit | 662c1dd2a97afd6c7ca09b8f5a74347ee017b86b (patch) | |
| tree | d1d7ada1eb9149fc10c77e4aa73892b7a9863a54 /src/http/ngx_http_upstream.h | |
| parent | ea001feb10a294ccd53c896b9919f17f5cbda468 (diff) | |
| download | nginx-662c1dd2a97afd6c7ca09b8f5a74347ee017b86b.tar.gz nginx-662c1dd2a97afd6c7ca09b8f5a74347ee017b86b.tar.bz2 | |
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;
Diffstat (limited to 'src/http/ngx_http_upstream.h')
| -rw-r--r-- | src/http/ngx_http_upstream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h index e0a903669..7a47675eb 100644 --- a/src/http/ngx_http_upstream.h +++ b/src/http/ngx_http_upstream.h @@ -185,6 +185,7 @@ typedef struct { ngx_flag_t pass_request_headers; ngx_flag_t pass_request_body; ngx_flag_t pass_trailers; + ngx_flag_t pass_early_hints; ngx_flag_t ignore_client_abort; ngx_flag_t intercept_errors; @@ -354,6 +355,7 @@ struct ngx_http_upstream_s { ngx_buf_t buffer; off_t length; + off_t early_hints_length; ngx_chain_t *out_bufs; ngx_chain_t *busy_bufs; |
