comparison xml/en/docs/njs/reference.xml @ 2925:3be061a0941a

Added link to varindex in njs Reference.
author Yaroslav Zhuravlev <yar@nginx.com>
date Thu, 05 Jan 2023 16:34:01 +0000
parents 5f1d472f6a97
children 237a77d8565b
comparison
equal deleted inserted replaced
2924:bd8482c5a7fe 2925:3be061a0941a
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="93"> 12 rev="94">
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
258 <para> 258 <para>
259 <note> 259 <note>
260 After redirect, 260 After redirect,
261 a new njs VM is started in the target location, 261 a new njs VM is started in the target location,
262 the VM in the original location is stopped. 262 the VM in the original location is stopped.
263 Values of nginx variables are kept 263 Values of <link doc="../varindex.xml">nginx variables</link> are kept
264 and can be used to pass information to the target location. 264 and can be used to pass information to the target location.
265 Since <link doc="changes.xml" id="njs0.5.3">0.5.3</link>, 265 Since <link doc="changes.xml" id="njs0.5.3">0.5.3</link>,
266 the variable declared with the <literal>js_var</literal> directive for 266 the variable declared with the <literal>js_var</literal> directive for
267 <link doc="../http/ngx_http_js_module.xml" id="js_var">http</link> or 267 <link doc="../http/ngx_http_js_module.xml" id="js_var">http</link> or
268 <link doc="../stream/ngx_stream_js_module.xml" id="js_var">stream</link> 268 <link doc="../stream/ngx_stream_js_module.xml" id="js_var">stream</link>
572 (since <link doc="changes.xml" id="njs0.5.0">0.5.0</link>) 572 (since <link doc="changes.xml" id="njs0.5.0">0.5.0</link>)
573 </tag-desc> 573 </tag-desc>
574 574
575 <tag-name id="r_variables"><literal>r.variables{}</literal></tag-name> 575 <tag-name id="r_variables"><literal>r.variables{}</literal></tag-name>
576 <tag-desc> 576 <tag-desc>
577 nginx variables object, writable 577 <link doc="../varindex.xml">nginx variables</link> object, writable
578 (since <link doc="changes.xml" id="njs0.2.8">0.2.8</link>). 578 (since <link doc="changes.xml" id="njs0.2.8">0.2.8</link>).
579 579
580 <para> 580 <para>
581 A variable is writable if: 581 A variable is writable if:
582 <list type="bullet"> 582 <list type="bullet">
858 </example> 858 </example>
859 </tag-desc> 859 </tag-desc>
860 860
861 <tag-name id="s_variables"><literal>s.variables{}</literal></tag-name> 861 <tag-name id="s_variables"><literal>s.variables{}</literal></tag-name>
862 <tag-desc> 862 <tag-desc>
863 nginx variables object, writable 863 <link doc="../varindex.xml">nginx variables</link> object, writable
864 (since <link doc="changes.xml" id="njs0.2.8">0.2.8</link>). 864 (since <link doc="changes.xml" id="njs0.2.8">0.2.8</link>).
865 A variable can be writable only 865 A variable can be writable only
866 if it is referenced in nginx configuration file. 866 if it is referenced in nginx configuration file.
867 Even so, some embedded variables still cannot be assigned a value. 867 Even so, some embedded variables still cannot be assigned a value.
868 </tag-desc> 868 </tag-desc>