comparison xml/en/docs/njs/reference.xml @ 2716:f82f16e327f2

Added info about js_var to r.internalRedirect in njs.
author Yaroslav Zhuravlev <yar@nginx.com>
date Fri, 30 Apr 2021 14:16:06 +0100
parents 3cbd6e440581
children ff357b676c2e
comparison
equal deleted inserted replaced
2715:a9c2fe68da66 2716:f82f16e327f2
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="73"> 12 rev="74">
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
178 After redirect, 178 After redirect,
179 a new njs VM is started in the target location, 179 a new njs VM is started in the target location,
180 the VM in the original location is stopped. 180 the VM in the original location is stopped.
181 Values of nginx variables are kept 181 Values of nginx variables are kept
182 and can be used to pass information to the target location. 182 and can be used to pass information to the target location.
183 Since <link doc="changes.xml" id="njs0.5.3">0.5.3</link>,
184 the variable declared with the <literal>js_var</literal> directive for
185 <link doc="../http/ngx_http_js_module.xml" id="js_var">http</link> or
186 <link doc="../stream/ngx_stream_js_module.xml" id="js_var">stream</link>
187 can be used.
183 </note> 188 </note>
184 </para> 189 </para>
185 190
186 </tag-desc> 191 </tag-desc>
187 192