# HG changeset patch # User Yaroslav Zhuravlev # Date 1612787401 0 # Node ID b4991bbd64ee54acb942b2523a7b52b9af89e751 # Parent 2ab5aa4d5b04fc66f9997ac95a2118aba84323cb Documented the js_header_filter directive. diff --git a/xml/en/docs/http/ngx_http_js_module.xml b/xml/en/docs/http/ngx_http_js_module.xml --- a/xml/en/docs/http/ngx_http_js_module.xml +++ b/xml/en/docs/http/ngx_http_js_module.xml @@ -9,7 +9,7 @@ + rev="23">
@@ -133,6 +133,21 @@ a module function can be referenced. + +function | module.function + +location +limit_except +0.5.1 + + +Sets an njs function as a response header filter. +The directive allows changing arbitrary header fields of a response header. + + + + + module.js | export_name from module.js diff --git a/xml/ru/docs/http/ngx_http_js_module.xml b/xml/ru/docs/http/ngx_http_js_module.xml --- a/xml/ru/docs/http/ngx_http_js_module.xml +++ b/xml/ru/docs/http/ngx_http_js_module.xml @@ -9,7 +9,7 @@ + rev="23">
@@ -133,6 +133,21 @@ export default {foo, summary, baz, hello + +функция | модуль.функция + +location +limit_except +0.5.1 + + +Задаёт функцию njs в качестве фильтра заголовка ответа. +Директива позволяет менять произвольные поля заголовка ответа. + + + + + модуль.js | имя_экспорта из модуль.js