# HG changeset patch # User Yaroslav Zhuravlev # Date 1707209572 0 # Node ID e6b785b7e3082fcde152b59b460448a33ec7df64 # Parent f0c2c0458f2b9bb70523f118a046d078624c7e6e Minor fixes in njs documentation. 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="46">
@@ -626,7 +626,7 @@ async function handler(s) { Preloads an immutable object at configure time. -The name is used a name of the global variable +The name is used as a name of the global variable though which the object is available in njs code. If the name is not specified, the file name will be used instead. diff --git a/xml/en/docs/njs/changes.xml b/xml/en/docs/njs/changes.xml --- a/xml/en/docs/njs/changes.xml +++ b/xml/en/docs/njs/changes.xml @@ -9,7 +9,7 @@
@@ -2967,9 +2967,9 @@ added support for multi-value headers in Feature: introduced raw headers API: -r.rawHeadersIn{} +r.rawHeadersIn[] and -r.rawHeadersOut{}. +r.rawHeadersOut[]. diff --git a/xml/en/docs/njs/reference.xml b/xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml +++ b/xml/en/docs/njs/reference.xml @@ -9,7 +9,7 @@
+ rev="121">
@@ -55,8 +55,8 @@ List of all njs properties and methods c r.requestBody r.requestBuffer r.requestText -r.rawHeadersIn{} -r.rawHeadersOut{} +r.rawHeadersIn[] +r.rawHeadersOut[] r.responseBody r.responseBuffer r.responseText @@ -395,7 +395,7 @@ Note that it may convert bytes invalid in UTF-8 encoding into the replacement character. -r.rawHeadersIn{} +r.rawHeadersIn[] 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. -r.rawHeadersOut{} +r.rawHeadersOut[] returns an array of key-value pairs of response headers (0.4.1). diff --git a/xml/en/docs/stream/ngx_stream_js_module.xml b/xml/en/docs/stream/ngx_stream_js_module.xml --- a/xml/en/docs/stream/ngx_stream_js_module.xml +++ b/xml/en/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ + rev="44">
@@ -544,7 +544,7 @@ async function handler(s) { Preloads an immutable object at configure time. -The name is used a name of the global variable +The name is used as a name of the global variable though which the object is available in njs code. If the name is not specified, the file name will be used instead. 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="46">
diff --git a/xml/ru/docs/stream/ngx_stream_js_module.xml b/xml/ru/docs/stream/ngx_stream_js_module.xml --- a/xml/ru/docs/stream/ngx_stream_js_module.xml +++ b/xml/ru/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ + rev="44">