Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_headers_module.xml @ 2002:e1f0ef8cff5e
Documented the "add_trailer" directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 27 Jun 2017 15:13:54 +0300 |
parents | 1ece24f10f2a |
children | d2969b2f69ae |
comparison
equal
deleted
inserted
replaced
2001:1ece24f10f2a | 2002:e1f0ef8cff5e |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_headers_module" | 10 <module name="Module ngx_http_headers_module" |
11 link="/en/docs/http/ngx_http_headers_module.html" | 11 link="/en/docs/http/ngx_http_headers_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="8"> | 13 rev="9"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_headers_module</literal> module allows adding | 18 The <literal>ngx_http_headers_module</literal> module allows adding |
68 </para> | 68 </para> |
69 | 69 |
70 <para> | 70 <para> |
71 If the <literal>always</literal> parameter is specified (1.7.5), | 71 If the <literal>always</literal> parameter is specified (1.7.5), |
72 the header field will be added regardless of the response code. | 72 the header field will be added regardless of the response code. |
73 </para> | |
74 | |
75 </directive> | |
76 | |
77 | |
78 <directive name="add_trailer"> | |
79 <syntax> | |
80 <value>name</value> <value>value</value> | |
81 [<literal>always</literal>]</syntax> | |
82 <default/> | |
83 <context>http</context> | |
84 <context>server</context> | |
85 <context>location</context> | |
86 <context>if in location</context> | |
87 <appeared-in>1.13.2</appeared-in> | |
88 | |
89 <para> | |
90 Adds the specified field to the end of a response provided that | |
91 the response code equals 200, 201, 206, 301, 302, 303, 307, or 308. | |
92 The value can contain variables. | |
93 </para> | |
94 | |
95 <para> | |
96 There could be several <literal>add_trailer</literal> directives. | |
97 These directives are inherited from the previous level if and | |
98 only if there are no | |
99 <literal>add_trailer</literal> | |
100 directives defined on the current level. | |
101 </para> | |
102 | |
103 <para> | |
104 If the <literal>always</literal> parameter is specified | |
105 the specified field will be added regardless of the response code. | |
73 </para> | 106 </para> |
74 | 107 |
75 </directive> | 108 </directive> |
76 | 109 |
77 | 110 |