changeset 2883:4959250ba429

Added links to njs directives in "Stream Processing".
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 23 Aug 2022 14:51:40 +0100
parents 986e1f930e3b
children ccd42f2b99fb
files xml/en/docs/stream/stream_processing.xml xml/ru/docs/stream/stream_processing.xml
diffstat 2 files changed, 28 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/stream/stream_processing.xml
+++ b/xml/en/docs/stream/stream_processing.xml
@@ -7,7 +7,7 @@
 <article name="How nginx processes a TCP/UDP session"
          link="/en/docs/stream/stream_processing.html"
          lang="en"
-         rev="3">
+         rev="4">
 
 <section>
 
@@ -43,8 +43,12 @@ modules are invoked at this phase.
 </tag-name>
 <tag-desc>
 Client access limitation before actual data processing.
-The <link doc="ngx_stream_access_module.xml">ngx_stream_access_module</link>
-module is invoked at this phase.
+At this phase,
+the <link doc="ngx_stream_access_module.xml">ngx_stream_access_module</link>
+module is invoked,
+for <link doc="../njs/index.xml">njs</link>,
+the <link doc="ngx_stream_js_module.xml" id="js_access"/> directive
+is invoked.
 </tag-desc>
 
 <tag-name id="ssl_phase">
@@ -65,6 +69,9 @@ Reading initial bytes of data into the
 to allow modules such as
 <link doc="ngx_stream_ssl_preread_module.xml">ngx_stream_ssl_preread_module</link>
 analyze the data before its processing.
+For <link doc="../njs/index.xml">njs</link>,
+the <link doc="ngx_stream_js_module.xml" id="js_preread"/> directive
+is invoked at this phase.
 </tag-desc>
 
 <tag-name id="content_phase">
@@ -76,6 +83,9 @@ Mandatory phase where data is actually p
 <link doc="ngx_stream_upstream_module.xml">upstream</link> servers,
 or a specified value
 is <link doc="ngx_stream_return_module.xml">returned</link> to a client.
+For <link doc="../njs/index.xml">njs</link>,
+the <link doc="ngx_stream_js_module.xml" id="js_filter"/> directive
+is invoked at this phase.
 </tag-desc>
 
 <tag-name id="log_phase">
--- a/xml/ru/docs/stream/stream_processing.xml
+++ b/xml/ru/docs/stream/stream_processing.xml
@@ -7,7 +7,7 @@
 <article name="Как nginx обрабатывает TCP/UDP-сессии"
          link="/ru/docs/stream/stream_processing.html"
          lang="ru"
-         rev="3">
+         rev="4">
 
 <section>
 
@@ -42,8 +42,13 @@
 </tag-name>
 <tag-desc>
 Ограничение доступа для клиента перед обработкой данных.
-В этой фазе выполняется модуль
-<link doc="ngx_stream_access_module.xml">ngx_stream_access_module</link>.
+В этой фазе
+выполняется модуль
+<link doc="ngx_stream_access_module.xml">ngx_stream_access_module</link>,
+при использовании <link doc="../njs/index.xml">njs</link>
+выполняется
+директива <link doc="ngx_stream_js_module.xml" id="js_access"/>.
+
 </tag-desc>
 
 <tag-name id="ssl_phase">
@@ -65,7 +70,10 @@
 предварительного чтения</link> для анализа,
 например модулем
 <link doc="ngx_stream_ssl_preread_module.xml">ngx_stream_ssl_preread_module</link>,
-перед их обработкой
+перед их обработкой.
+При использовании <link doc="../njs/index.xml">njs</link>
+в этой фазе выполняется
+директива <link doc="ngx_stream_js_module.xml" id="js_preread"/>.
 </tag-desc>
 
 <tag-name id="content_phase">
@@ -77,6 +85,9 @@
 <link doc="ngx_stream_upstream_module.xml">группу серверов</link>
 или <link doc="ngx_stream_return_module.xml">отправка</link> клиенту
 заданного значения.
+При использовании <link doc="../njs/index.xml">njs</link>
+в этой фазе выполняется
+директива <link doc="ngx_stream_js_module.xml" id="js_filter"/>.
 </tag-desc>
 
 <tag-name id="log_phase">