comparison xml/en/docs/njs/njs_api.xml @ 2189:23cfb62121d1

Mentioned byte strings for njs HTTP and stream objects.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 19 Jun 2018 20:43:33 +0300
parents 8e2b3aadc3ce
children bb2c6b63cb9a
comparison
equal deleted inserted replaced
2188:523dc4cc8745 2189:23cfb62121d1
586 </section> 586 </section>
587 587
588 588
589 <section id="http" name="HTTP"> 589 <section id="http" name="HTTP">
590 590
591
592 <section id="http_request" name="Request">
593
594 <para> 591 <para>
595 The <literal>HTTP</literal> object is available only in the 592 The <literal>HTTP</literal> object is available only in the
596 <link doc="../http/ngx_http_js_module.xml">ngx_http_js_module</link> module. 593 <link doc="../http/ngx_http_js_module.xml">ngx_http_js_module</link> module.
597 </para> 594 All string properties of the <literal>HTTP</literal> object are
595 <link id="string">byte strings</link>.
596 </para>
597
598
599 <section id="http_request" name="Request">
598 600
599 <para> 601 <para>
600 <list type="tag"> 602 <list type="tag">
601 603
602 <tag-name><literal>r.args{}</literal></tag-name> 604 <tag-name><literal>r.args{}</literal></tag-name>
771 773
772 <para> 774 <para>
773 The <literal>stream</literal> object is available only in the 775 The <literal>stream</literal> object is available only in the
774 <link doc="../stream/ngx_stream_js_module.xml">ngx_stream_js_module</link> 776 <link doc="../stream/ngx_stream_js_module.xml">ngx_stream_js_module</link>
775 module. 777 module.
778 All string properties of the <literal>stream</literal> object are
779 <link id="string">byte strings</link>.
776 </para> 780 </para>
777 781
778 782
779 <section id="stream_session" name="Session"> 783 <section id="stream_session" name="Session">
780 784
1057 return; 1061 return;
1058 } 1062 }
1059 r.return(500); 1063 r.return(500);
1060 }); 1064 });
1061 } 1065 }
1066
1062 function version(r) { 1067 function version(r) {
1063 r.subrequest('/api/3/nginx', { method: 'GET' }, function(res) { 1068 r.subrequest('/api/3/nginx', { method: 'GET' }, function(res) {
1064 if (res.status != 200) { 1069 if (res.status != 200) {
1065 r.return(res.status); 1070 r.return(res.status);
1066 return; 1071 return;