Mercurial > hg > nginx-site
diff xml/ru/docs/http/ngx_http_js_module.xml @ 2675:893cd7724c8c
Documented the "r" argument for js_body_filter.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 09 Mar 2021 18:44:56 +0000 |
parents | 9e39e64bff84 |
children | 8751cab1d562 |
line wrap: on
line diff
--- a/xml/ru/docs/http/ngx_http_js_module.xml Tue Mar 09 16:27:27 2021 +0000 +++ b/xml/ru/docs/http/ngx_http_js_module.xml Tue Mar 09 18:44:56 2021 +0000 @@ -9,7 +9,7 @@ <module name="Модуль ngx_http_js_module" link="/ru/docs/http/ngx_http_js_module.html" lang="ru" - rev="24"> + rev="25"> <section id="summary"> @@ -132,6 +132,11 @@ со следующими аргументами: <list type="tag"> +<tag-name><literal>r</literal></tag-name> +<tag-desc> +объект <link doc="../njs/reference.xml" id="http">HTTP request</link> +</tag-desc> + <tag-name><literal>data</literal></tag-name> <tag-desc> входящий блок данных @@ -161,7 +166,7 @@ <link doc="../njs/reference.xml" id="r_sendbuffer"><literal>r.sendBuffer()</literal></link>. Пример преобразования букв в нижний регистр в теле ответа: <example> -function filter(data, flags) { +function filter(r, data, flags) { r.sendBuffer(data.toLowerCase(), flags); } </example>