summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2024-11-15 08:23:53 +0400
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>2025-06-19 10:19:57 +0400
commit662c1dd2a97afd6c7ca09b8f5a74347ee017b86b (patch)
treed1d7ada1eb9149fc10c77e4aa73892b7a9863a54 /src/http/ngx_http.h
parentea001feb10a294ccd53c896b9919f17f5cbda468 (diff)
downloadnginx-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.h')
-rw-r--r--src/http/ngx_http.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h
index cb4a1e68a..7d98f5cd7 100644
--- a/src/http/ngx_http.h
+++ b/src/http/ngx_http.h
@@ -152,6 +152,7 @@ ngx_int_t ngx_http_read_client_request_body(ngx_http_request_t *r,
ngx_int_t ngx_http_read_unbuffered_request_body(ngx_http_request_t *r);
ngx_int_t ngx_http_send_header(ngx_http_request_t *r);
+ngx_int_t ngx_http_send_early_hints(ngx_http_request_t *r);
ngx_int_t ngx_http_special_response_handler(ngx_http_request_t *r,
ngx_int_t error);
ngx_int_t ngx_http_filter_finalize_request(ngx_http_request_t *r,
@@ -191,6 +192,7 @@ extern ngx_str_t ngx_http_html_default_types[];
extern ngx_http_output_header_filter_pt ngx_http_top_header_filter;
+extern ngx_http_output_header_filter_pt ngx_http_top_early_hints_filter;
extern ngx_http_output_body_filter_pt ngx_http_top_body_filter;
extern ngx_http_request_body_filter_pt ngx_http_top_request_body_filter;