Mercurial > hg > nginx-site
comparison xml/en/docs/njs/reference.xml @ 2997:adecad3d7039
Added link to subrequest response object in njs Reference.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 16 Aug 2023 12:12:22 +0100 |
parents | 703d3450cd81 |
children | 050d2e099e16 |
comparison
equal
deleted
inserted
replaced
2996:98bd95a5ac70 | 2997:adecad3d7039 |
---|---|
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="111"> | 12 rev="112"> |
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 |
582 </list> | 582 </list> |
583 </para> | 583 </para> |
584 | 584 |
585 <para> | 585 <para> |
586 The completion <literal>callback</literal> receives | 586 The completion <literal>callback</literal> receives |
587 a subrequest response object with methods and properties | 587 a <link id="http">subrequest response object</link> with methods and properties |
588 identical to the parent request object. | 588 identical to the parent request object. |
589 </para> | 589 </para> |
590 | 590 |
591 <para> | 591 <para> |
592 Since <link doc="changes.xml" id="njs0.3.8">0.3.8</link>, | 592 Since <link doc="changes.xml" id="njs0.3.8">0.3.8</link>, |
593 if a <literal>callback</literal> is not provided, | 593 if a <literal>callback</literal> is not provided, |
594 the <literal>Promise</literal> object | 594 the <literal>Promise</literal> object |
595 that resolves to the subrequest response object is returned. | 595 that resolves to the <link id="http">subrequest response object</link> |
596 is returned. | |
596 </para> | 597 </para> |
597 </tag-desc> | 598 </tag-desc> |
598 | 599 |
599 <tag-name id="r_uri"><literal>r.uri</literal></tag-name> | 600 <tag-name id="r_uri"><literal>r.uri</literal></tag-name> |
600 <tag-desc> | 601 <tag-desc> |