Mercurial > hg > nginx-site
comparison xml/en/docs/njs/reference.xml @ 3001:7c3182a95cd6
Enhanced description of r.headersOut in njs Reference.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 16 Aug 2023 12:12:22 +0100 |
parents | 050d2e099e16 |
children | 3184864bbb3f |
comparison
equal
deleted
inserted
replaced
3000:7eafa16bb07c | 3001:7c3182a95cd6 |
---|---|
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> | 7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> |
8 | 8 |
9 <article name="Reference" | 9 <article name="Reference" |
10 link="/en/docs/njs/reference.html" | 10 link="/en/docs/njs/reference.html" |
11 lang="en" | 11 lang="en" |
12 rev="113"> | 12 rev="114"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 <link doc="index.xml">njs</link> provides objects, methods and properties | 17 <link doc="index.xml">njs</link> provides objects, methods and properties |
200 </para> | 200 </para> |
201 </tag-desc> | 201 </tag-desc> |
202 | 202 |
203 <tag-name id="r_headers_out"><literal>r.headersOut{}</literal></tag-name> | 203 <tag-name id="r_headers_out"><literal>r.headersOut{}</literal></tag-name> |
204 <tag-desc> | 204 <tag-desc> |
205 outgoing headers object, writable. | 205 outgoing headers object for the main request, writable. |
206 | |
207 <para> | |
208 If <literal>r.headersOut{}</literal> is the response object of | |
209 a <link id="r_subrequest">subrequest</link>, it represents response headers. | |
210 In this case, field values in | |
211 <header>Accept-Ranges</header>, | |
212 <header>Connection</header>, | |
213 <header>Content-Disposition</header>, | |
214 <header>Content-Encoding</header>, | |
215 <header>Content-Length</header>, | |
216 <header>Content-Range</header>, | |
217 <header>Date</header>, | |
218 <header>Keep-Alive</header>, | |
219 <header>Server</header>, | |
220 <header>Transfer-Encoding</header>, | |
221 <header>X-Accel-*</header> | |
222 response headers may be omitted. | |
223 </para> | |
224 | |
206 <para> | 225 <para> |
207 The <header>Foo</header> response header | 226 The <header>Foo</header> response header |
208 can be accessed with the syntax: | 227 can be accessed with the syntax: |
209 <literal>headersOut.foo</literal> or <literal>headersOut['Foo']</literal>. | 228 <literal>headersOut.foo</literal> or <literal>headersOut['Foo']</literal>. |
210 </para> | 229 </para> |