Mercurial > hg > nginx-site
changeset 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 | b60e5be733cd |
children | fa00f12061cd |
files | xml/en/docs/njs/reference.xml xml/ru/docs/njs/reference.xml |
diffstat | 2 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/njs/reference.xml Tue Jan 21 16:37:54 2020 +0000 +++ b/xml/en/docs/njs/reference.xml Tue Jan 21 17:01:24 2020 +0000 @@ -9,7 +9,7 @@ <article name="Reference" link="/en/docs/njs/reference.html" lang="en" - rev="32"> + rev="33"> <section id="summary"> @@ -229,6 +229,13 @@ a subrequest response object with methods and properties identical to the parent request object. </para> + +<para> +Since <link doc="changes.xml" id="njs0.3.8">0.3.8</link>, +if a <literal>callback</literal> is not provided, +the <literal>Promise</literal> object +that resolves to the subrequest response object is returned. +</para> </tag-desc> </list>
--- a/xml/ru/docs/njs/reference.xml Tue Jan 21 16:37:54 2020 +0000 +++ b/xml/ru/docs/njs/reference.xml Tue Jan 21 17:01:24 2020 +0000 @@ -228,6 +228,13 @@ объект ответа подзапроса с методами и свойствами, идентичными родительскому объекту запроса. </para> + +<para> +Начиная с версии njs <link doc="changes.xml" id="njs0.3.8">0.3.8</link> +если не указан <literal>callback</literal>, +то возвращается объект <literal>Promise</literal>, +который разрешается в объект ответа подзапроса. +</para> </tag-desc> </list>