Mercurial > hg > nginx-site
comparison xml/en/docs/stream/ngx_stream_js_module.xml @ 2534:33468af2eaf7
Moved load_module from examples of js modules to Installation.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 22 Apr 2020 16:54:18 +0100 |
parents | 617bc29bd759 |
children | f27cedd43e0f |
comparison
equal
deleted
inserted
replaced
2533:617bc29bd759 | 2534:33468af2eaf7 |
---|---|
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
8 | 8 |
9 <module name="Module ngx_stream_js_module" | 9 <module name="Module ngx_stream_js_module" |
10 link="/en/docs/stream/ngx_stream_js_module.html" | 10 link="/en/docs/stream/ngx_stream_js_module.html" |
11 lang="en" | 11 lang="en" |
12 rev="19"> | 12 rev="20"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 The <literal>ngx_stream_js_module</literal> module is used to implement | 17 The <literal>ngx_stream_js_module</literal> module is used to implement |
31 | 31 |
32 <para> | 32 <para> |
33 The example works since | 33 The example works since |
34 <link doc="../njs/changes.xml" id="njs0.4.0">0.4.0</link>. | 34 <link doc="../njs/changes.xml" id="njs0.4.0">0.4.0</link>. |
35 <example> | 35 <example> |
36 load_module modules/ngx_stream_js_module.so; | |
37 ... | |
38 | |
39 stream { | 36 stream { |
40 js_import stream.js; | 37 js_import stream.js; |
41 | 38 |
42 js_set $bar stream.bar; | 39 js_set $bar stream.bar; |
43 js_set $req_line stream.req_line; | 40 js_set $req_line stream.req_line; |