Mercurial > hg > nginx-site
comparison xml/en/docs/njs/reference.xml @ 2484:2aa02672d54f
Added a note to r.subrequest in njs.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 21 Jan 2020 17:01:24 +0000 |
parents | 32b945768dea |
children | 9dddac1420fe |
comparison
equal
deleted
inserted
replaced
2483:b60e5be733cd | 2484:2aa02672d54f |
---|---|
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="32"> | 12 rev="33"> |
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 |
226 | 226 |
227 <para> | 227 <para> |
228 The completion <literal>callback</literal> receives | 228 The completion <literal>callback</literal> receives |
229 a subrequest response object with methods and properties | 229 a subrequest response object with methods and properties |
230 identical to the parent request object. | 230 identical to the parent request object. |
231 </para> | |
232 | |
233 <para> | |
234 Since <link doc="changes.xml" id="njs0.3.8">0.3.8</link>, | |
235 if a <literal>callback</literal> is not provided, | |
236 the <literal>Promise</literal> object | |
237 that resolves to the subrequest response object is returned. | |
231 </para> | 238 </para> |
232 </tag-desc> | 239 </tag-desc> |
233 | 240 |
234 </list> | 241 </list> |
235 </para> | 242 </para> |