Mercurial > hg > nginx-site
changeset 3039:e6b785b7e308
Minor fixes in njs documentation.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 06 Feb 2024 08:52:52 +0000 |
parents | f0c2c0458f2b |
children | b55264db8d9f |
files | xml/en/docs/http/ngx_http_js_module.xml xml/en/docs/njs/changes.xml xml/en/docs/njs/reference.xml xml/en/docs/stream/ngx_stream_js_module.xml xml/ru/docs/http/ngx_http_js_module.xml xml/ru/docs/stream/ngx_stream_js_module.xml |
diffstat | 6 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_js_module.xml +++ b/xml/en/docs/http/ngx_http_js_module.xml @@ -9,7 +9,7 @@ <module name="Module ngx_http_js_module" link="/en/docs/http/ngx_http_js_module.html" lang="en" - rev="45"> + rev="46"> <section id="summary"> @@ -626,7 +626,7 @@ async function handler(s) { Preloads an <link doc="../njs/preload_objects.xml">immutable object</link> at configure time. -The <literal>name</literal> is used a name of the global variable +The <literal>name</literal> is used as a name of the global variable though which the object is available in njs code. If the <literal>name</literal> is not specified, the file name will be used instead.
--- a/xml/en/docs/njs/changes.xml +++ b/xml/en/docs/njs/changes.xml @@ -9,7 +9,7 @@ <article name="Changes" link="/en/docs/njs/changes.html" lang="en" - rev="66" + rev="67" toc="no"> <section id="njs0.8.2" name="Changes with njs 0.8.2"> @@ -2967,9 +2967,9 @@ added support for multi-value headers in <para> Feature: introduced <literal>raw headers</literal> API: -<link doc="reference.xml" id="r_raw_headers_in"><literal>r.rawHeadersIn{}</literal></link> +<link doc="reference.xml" id="r_raw_headers_in"><literal>r.rawHeadersIn[]</literal></link> and -<link doc="reference.xml" id="r_raw_headers_out"><literal>r.rawHeadersOut{}</literal></link>. +<link doc="reference.xml" id="r_raw_headers_out"><literal>r.rawHeadersOut[]</literal></link>. </para> </listitem>
--- a/xml/en/docs/njs/reference.xml +++ b/xml/en/docs/njs/reference.xml @@ -9,7 +9,7 @@ <article name="Reference" link="/en/docs/njs/reference.html" lang="en" - rev="120"> + rev="121"> <section id="summary"> @@ -55,8 +55,8 @@ List of all njs properties and methods c <tr><td><link id="r_request_body"><literal>r.requestBody</literal></link></td></tr> <tr><td><link id="r_request_buffer"><literal>r.requestBuffer</literal></link></td></tr> <tr><td><link id="r_request_text"><literal>r.requestText</literal></link></td></tr> -<tr><td><link id="r_raw_headers_in"><literal>r.rawHeadersIn{}</literal></link></td></tr> -<tr><td><link id="r_raw_headers_out"><literal>r.rawHeadersOut{}</literal></link></td></tr> +<tr><td><link id="r_raw_headers_in"><literal>r.rawHeadersIn[]</literal></link></td></tr> +<tr><td><link id="r_raw_headers_out"><literal>r.rawHeadersOut[]</literal></link></td></tr> <tr><td><link id="r_response_body"><literal>r.responseBody</literal></link></td></tr> <tr><td><link id="r_response_buffer"><literal>r.responseBuffer</literal></link></td></tr> <tr><td><link id="r_response_text"><literal>r.responseText</literal></link></td></tr> @@ -395,7 +395,7 @@ Note that it may convert bytes invalid in UTF-8 encoding into the replacement character. </tag-desc> -<tag-name id="r_raw_headers_in"><literal>r.rawHeadersIn{}</literal></tag-name> +<tag-name id="r_raw_headers_in"><literal>r.rawHeadersIn[]</literal></tag-name> <tag-desc> returns an array of key-value pairs exactly as they were received from the client @@ -429,7 +429,7 @@ duplicate field values are not merged. </para> </tag-desc> -<tag-name id="r_raw_headers_out"><literal>r.rawHeadersOut{}</literal></tag-name> +<tag-name id="r_raw_headers_out"><literal>r.rawHeadersOut[]</literal></tag-name> <tag-desc> returns an array of key-value pairs of response headers (<link doc="changes.xml" id="njs0.4.1">0.4.1</link>).
--- a/xml/en/docs/stream/ngx_stream_js_module.xml +++ b/xml/en/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ <module name="Module ngx_stream_js_module" link="/en/docs/stream/ngx_stream_js_module.html" lang="en" - rev="43"> + rev="44"> <section id="summary"> @@ -544,7 +544,7 @@ async function handler(s) { Preloads an <link doc="../njs/preload_objects.xml">immutable object</link> at configure time. -The <literal>name</literal> is used a name of the global variable +The <literal>name</literal> is used as a name of the global variable though which the object is available in njs code. If the <literal>name</literal> is not specified, the file name will be used instead.