# HG changeset patch # User Yaroslav Zhuravlev # Date 1651771907 -3600 # Node ID a3aee2697d4e0068370df1fc7fdb9c593bdbe92f # Parent eb11724745e30d9c0e23316e7aebec33973a9d9e Documented directives for Fetch API in njs. diff -r eb11724745e3 -r a3aee2697d4e xml/en/docs/http/ngx_http_js_module.xml --- a/xml/en/docs/http/ngx_http_js_module.xml Wed May 04 22:40:12 2022 +0100 +++ b/xml/en/docs/http/ngx_http_js_module.xml Thu May 05 18:31:47 2022 +0100 @@ -9,7 +9,7 @@ + rev="35">
@@ -244,6 +244,22 @@ + +size +16k +http +server +location +0.7.4 + + +Sets the size of the buffer used for reading and writing +with Fetch API. + + + + + ciphers HIGH:!aNULL:!MD5 @@ -267,6 +283,22 @@ + +size +1m +http +server +location +0.7.4 + + +Sets the maximum size of the response received +with Fetch API. + + + + + [TLSv1] @@ -287,6 +319,25 @@ + +time +60s +http +server +location +0.7.4 + + +Defines a timeout for reading and writing +for Fetch API. +The timeout is set only between two successive read/write operations, +not for the whole response. +If no data is transmitted within this time, the connection is closed. + + + + + file @@ -306,6 +357,22 @@ + +on | off +on +http +server +location +0.7.4 + + +Enables or disables verification of the HTTPS server certificate +with Fetch API. + + + + + number 100 diff -r eb11724745e3 -r a3aee2697d4e xml/en/docs/stream/ngx_stream_js_module.xml --- a/xml/en/docs/stream/ngx_stream_js_module.xml Wed May 04 22:40:12 2022 +0100 +++ b/xml/en/docs/stream/ngx_stream_js_module.xml Thu May 05 18:31:47 2022 +0100 @@ -9,7 +9,7 @@ + rev="31">
@@ -145,6 +145,21 @@ + +size +16k +stream +server +0.7.4 + + +Sets the size of the buffer used for reading and writing +with Fetch API. + + + + + ciphers HIGH:!aNULL:!MD5 @@ -166,6 +181,21 @@ + +size +1m +stream +server +0.7.4 + + +Sets the maximum size of the response received +with Fetch API. + + + + + [TLSv1] @@ -185,6 +215,24 @@ + +time +60s +stream +server +0.7.4 + + +Defines a timeout for reading and writing +for Fetch API. +The timeout is set only between two successive read/write operations, +not for the whole response. +If no data is transmitted within this time, the connection is closed. + + + + + file @@ -203,6 +251,21 @@ + +on | off +on +stream +server +0.7.4 + + +Enables or disables verification of the HTTPS server certificate +with Fetch API. + + + + + number 100 diff -r eb11724745e3 -r a3aee2697d4e xml/ru/docs/http/ngx_http_js_module.xml --- a/xml/ru/docs/http/ngx_http_js_module.xml Wed May 04 22:40:12 2022 +0100 +++ b/xml/ru/docs/http/ngx_http_js_module.xml Thu May 05 18:31:47 2022 +0100 @@ -9,7 +9,7 @@ + rev="35">
@@ -244,6 +244,23 @@ + +размер +16k +http +server +location +0.7.4 + + +Задаёт размер буфера, который будет использоваться +для чтения и записи для +Fetch API. + + + + + шифры HIGH:!aNULL:!MD5 @@ -266,6 +283,22 @@ + +размер +1m +http +server +location +0.7.4 + + +Задаёт максимальный размер ответа, полученного +при помощи Fetch API. + + + + + [TLSv1] @@ -286,6 +319,25 @@ + +время +60s +http +server +location +0.7.4 + + +Задаёт таймаут при чтении и записи +при помощи Fetch API. +Таймаут устанавливается не на всю передачу ответа, +а только между двумя операциями чтения. +Если по истечении этого времени данные не передавались, соединение закрывается. + + + + + файл @@ -305,6 +357,22 @@ + +on | off +on +http +server +location +0.7.4 + + +Разрешает или запрещает проверку сертификата HTTPS-сервера +при помощи Fetch API. + + + + + число 100 diff -r eb11724745e3 -r a3aee2697d4e xml/ru/docs/stream/ngx_stream_js_module.xml --- a/xml/ru/docs/stream/ngx_stream_js_module.xml Wed May 04 22:40:12 2022 +0100 +++ b/xml/ru/docs/stream/ngx_stream_js_module.xml Thu May 05 18:31:47 2022 +0100 @@ -9,7 +9,7 @@ + rev="31">
@@ -145,6 +145,22 @@ + +размер +16k +stream +server +0.7.4 + + +Задаёт размер буфера, который будет использоваться +для чтения и записи для +Fetch API. + + + + + шифры HIGH:!aNULL:!MD5 @@ -166,6 +182,21 @@ + +размер +1m +stream +server +0.7.4 + + +Задаёт максимальный размер ответа, полученного +при помощи Fetch API. + + + + + [TLSv1] @@ -185,6 +216,24 @@ + +время +60s +stream +server +0.7.4 + + +Задаёт таймаут при чтении и записи +при помощи Fetch API. +Таймаут устанавливается не на всю передачу ответа, +а только между двумя операциями чтения. +Если по истечении этого времени данные не передавались, соединение закрывается. + + + + + файл @@ -203,6 +252,21 @@ + +on | off +on +stream +server +0.7.4 + + +Разрешает или запрещает проверку сертификата HTTPS-сервера +при помощи Fetch API. + + + + + число 100