Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.h @ 7230:098bbd076a2d
Upstream: trailers support, u->conf->pass_trailers flag.
Basic trailer headers support allows one to access response trailers
via the $upstream_trailer_* variables.
Additionally, the u->conf->pass_trailers flag was introduced. When the
flag is set, trailer headers from the upstream response are passed to
the client. Like normal headers, trailer headers will be hidden
if present in u->conf->hide_headers_hash.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 17 Mar 2018 23:04:21 +0300 |
parents | d0d32b33167d |
children | 22f7bdbd96d3 |
comparison
equal
deleted
inserted
replaced
7229:87e9e4aabf1b | 7230:098bbd076a2d |
---|---|
220 signed cache:2; | 220 signed cache:2; |
221 #endif | 221 #endif |
222 signed store:2; | 222 signed store:2; |
223 unsigned intercept_404:1; | 223 unsigned intercept_404:1; |
224 unsigned change_buffering:1; | 224 unsigned change_buffering:1; |
225 unsigned pass_trailers:1; | |
225 | 226 |
226 #if (NGX_HTTP_SSL || NGX_COMPAT) | 227 #if (NGX_HTTP_SSL || NGX_COMPAT) |
227 ngx_ssl_t *ssl; | 228 ngx_ssl_t *ssl; |
228 ngx_flag_t ssl_session_reuse; | 229 ngx_flag_t ssl_session_reuse; |
229 | 230 |
249 } ngx_http_upstream_header_t; | 250 } ngx_http_upstream_header_t; |
250 | 251 |
251 | 252 |
252 typedef struct { | 253 typedef struct { |
253 ngx_list_t headers; | 254 ngx_list_t headers; |
255 ngx_list_t trailers; | |
254 | 256 |
255 ngx_uint_t status_n; | 257 ngx_uint_t status_n; |
256 ngx_str_t status_line; | 258 ngx_str_t status_line; |
257 | 259 |
258 ngx_table_elt_t *status; | 260 ngx_table_elt_t *status; |