# HG changeset patch # User Yaroslav Zhuravlev # Date 1529430213 -10800 # Node ID 23cfb62121d124b465fd1e14234b2cba73f04feb # Parent 523dc4cc8745e1a9f8c09fb4ff2010ae9decd531 Mentioned byte strings for njs HTTP and stream objects. diff --git a/xml/en/docs/njs/njs_api.xml b/xml/en/docs/njs/njs_api.xml --- a/xml/en/docs/njs/njs_api.xml +++ b/xml/en/docs/njs/njs_api.xml @@ -588,14 +588,16 @@ Oglm93xn23_MkiaEq_e9u8zk374
- -
- The HTTP object is available only in the ngx_http_js_module module. +All string properties of the HTTP object are +byte strings. + +
+ @@ -773,6 +775,8 @@ identical to the parent request object. The stream object is available only in the ngx_stream_js_module module. +All string properties of the stream object are +byte strings. @@ -1059,6 +1063,7 @@ function set_keyval(r) { r.return(500); }); } + function version(r) { r.subrequest('/api/3/nginx', { method: 'GET' }, function(res) { if (res.status != 200) { diff --git a/xml/ru/docs/njs/njs_api.xml b/xml/ru/docs/njs/njs_api.xml --- a/xml/ru/docs/njs/njs_api.xml +++ b/xml/ru/docs/njs/njs_api.xml @@ -23,15 +23,17 @@
+ +Объект HTTP доступен только в +модуле ngx_http_js_module. +Все строки в объекте HTTP являются +байтовыми строками. + +
-Объекты HTTP доступны только в -модуле ngx_http_js_module. - - - r.args{} @@ -198,9 +200,11 @@ HTTP метод, только чтение
-Объекты stream доступны только в +Объект stream доступен только в модуле ngx_stream_js_module. +Все строки в объекте stream являются +байтовыми строками. @@ -462,6 +466,7 @@ function set_keyval(r) { r.return(500); }); } + function version(r) { r.subrequest('/api/3/nginx', { method: 'GET' }, function(res) { if (res.status != 200) {