# HG changeset patch # User Yaroslav Zhuravlev # Date 1696014419 -3600 # Node ID c0a4a4a55e450882e5573e1d950b0505960b196c # Parent 1ad61bfc7630adf1d6460cf84cec484de4017326 Documented Periodic Session object in njs Reference. diff -r 1ad61bfc7630 -r c0a4a4a55e45 xml/en/docs/http/ngx_http_js_module.xml --- a/xml/en/docs/http/ngx_http_js_module.xml Fri Sep 22 15:11:23 2023 -0700 +++ b/xml/en/docs/http/ngx_http_js_module.xml Fri Sep 29 20:06:59 2023 +0100 @@ -9,7 +9,7 @@ + rev="44">
@@ -553,7 +553,9 @@ Specifies a content handler to run at regular interval. -The handler receives a session object as its first argument, +The handler receives a +session object +as its first argument, it also has access to global objects such as ngx. diff -r 1ad61bfc7630 -r c0a4a4a55e45 xml/en/docs/njs/compatibility.xml --- a/xml/en/docs/njs/compatibility.xml Fri Sep 22 15:11:23 2023 -0700 +++ b/xml/en/docs/njs/compatibility.xml Fri Sep 29 20:06:59 2023 +0100 @@ -9,7 +9,7 @@
@@ -1182,6 +1182,14 @@ +Periodic Session +(0.8.1): +PeriodicSession.rawVariables, +PeriodicSession.variables + + + + Request (0.7.10): bodyUsed, diff -r 1ad61bfc7630 -r c0a4a4a55e45 xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml Fri Sep 22 15:11:23 2023 -0700 +++ b/xml/en/docs/njs/reference.xml Fri Sep 29 20:06:59 2023 +0100 @@ -9,7 +9,7 @@
+ rev="117">
@@ -1008,6 +1008,44 @@
+
+ + + + + +
PeriodicSession.rawVariables{}
PeriodicSession.variables{}
+
+ + +The Periodic Session object is provided as the first argument +for the js_periodic handler for +http +and +stream +(since 0.8.1). + + + + + +PeriodicSession.rawVariables{} + +nginx variables as Buffers, +writable. + + +PeriodicSession.variables{} + +nginx variables object, writable. + + + + + +
+ +
diff -r 1ad61bfc7630 -r c0a4a4a55e45 xml/en/docs/stream/ngx_stream_js_module.xml --- a/xml/en/docs/stream/ngx_stream_js_module.xml Fri Sep 22 15:11:23 2023 -0700 +++ b/xml/en/docs/stream/ngx_stream_js_module.xml Fri Sep 29 20:06:59 2023 +0100 @@ -9,7 +9,7 @@ + rev="43">
@@ -470,7 +470,9 @@ Specifies a content handler to run at regular interval. -The handler receives a session object as its first argument, +The handler receives a +session object +as its first argument, it also has access to global objects such as ngx. diff -r 1ad61bfc7630 -r c0a4a4a55e45 xml/ru/docs/http/ngx_http_js_module.xml --- a/xml/ru/docs/http/ngx_http_js_module.xml Fri Sep 22 15:11:23 2023 -0700 +++ b/xml/ru/docs/http/ngx_http_js_module.xml Fri Sep 29 20:06:59 2023 +0100 @@ -9,7 +9,7 @@ + rev="44">
@@ -554,7 +554,8 @@ Задаёт периодичность запуска обработчика содержимого. -В качестве первого аргумента обработчик получает объект сессии, +В качестве первого аргумента обработчик получает +объект сессии, также у обработчика есть доступ к глобальным объектам таким как ngx. diff -r 1ad61bfc7630 -r c0a4a4a55e45 xml/ru/docs/njs/compatibility.xml --- a/xml/ru/docs/njs/compatibility.xml Fri Sep 22 15:11:23 2023 -0700 +++ b/xml/ru/docs/njs/compatibility.xml Fri Sep 29 20:06:59 2023 +0100 @@ -9,7 +9,7 @@
@@ -1182,6 +1182,13 @@ +Periodic Session +(0.8.1): +PeriodicSession.rawVariables, +PeriodicSession.variables + + + Request (0.7.10): bodyUsed, diff -r 1ad61bfc7630 -r c0a4a4a55e45 xml/ru/docs/stream/ngx_stream_js_module.xml --- a/xml/ru/docs/stream/ngx_stream_js_module.xml Fri Sep 22 15:11:23 2023 -0700 +++ b/xml/ru/docs/stream/ngx_stream_js_module.xml Fri Sep 29 20:06:59 2023 +0100 @@ -9,7 +9,7 @@ + rev="43">
@@ -567,7 +567,8 @@ Задаёт периодичность запуска обработчика содержимого. -В качестве первого аргумента обработчик получает объект сессии, +В качестве первого аргумента обработчик получает +объект сессии, также у обработчика есть доступ к глобальным объектам таким как ngx.