diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2018-03-17 23:04:21 +0300 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2018-03-17 23:04:21 +0300 |
| commit | 7ef115a7e864573478e3f88d6a4ef689a1b73b92 (patch) | |
| tree | 47dcf313d7d2ac63ff2cda3a134b6f0068b90e8b /src/http/ngx_http_upstream.h | |
| parent | c554dd1434e1378ac5f83a97b6d250b772941498 (diff) | |
| download | nginx-7ef115a7e864573478e3f88d6a4ef689a1b73b92.tar.gz nginx-7ef115a7e864573478e3f88d6a4ef689a1b73b92.tar.bz2 | |
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.
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 56b54d13b..a56238d37 100644 --- a/src/http/ngx_http_upstream.h +++ b/src/http/ngx_http_upstream.h @@ -222,6 +222,7 @@ typedef struct { signed store:2; unsigned intercept_404:1; unsigned change_buffering:1; + unsigned pass_trailers:1; #if (NGX_HTTP_SSL || NGX_COMPAT) ngx_ssl_t *ssl; @@ -251,6 +252,7 @@ typedef struct { typedef struct { ngx_list_t headers; + ngx_list_t trailers; ngx_uint_t status_n; ngx_str_t status_line; |
