Mercurial > hg > nginx-site
diff xml/en/docs/stream/ngx_stream_js_module.xml @ 2693:3cbd6e440581
Documented the js_var directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 29 Mar 2021 19:40:27 +0100 |
parents | 45214e5316cd |
children | a45ba3a1d999 |
line wrap: on
line diff
--- a/xml/en/docs/stream/ngx_stream_js_module.xml +++ b/xml/en/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ <module name="Module ngx_stream_js_module" link="/en/docs/stream/ngx_stream_js_module.html" lang="en" - rev="25"> + rev="26"> <section id="summary"> @@ -282,6 +282,25 @@ right before the request is freed. </directive> + +<directive name="js_var"> +<syntax><value>$variable</value> [<value>value</value>]</syntax> +<default/> +<context>stream</context> +<appeared-in>0.5.3</appeared-in> + +<para> +Declares +a <link doc="../njs/reference.xml" id="r_variables">writable</link> +variable. +The value can contain text, variables, and their combination. +The variable is not overwritten after a redirect +unlike variables created with the +<link doc="ngx_stream_set_module.xml" id="set"/> directive. +</para> + +</directive> + </section>