Mercurial > hg > nginx-site
comparison xml/en/docs/njs/njs_api.xml @ 2202:b91e766acbd4
Updated HTTP request and stream session sections for njs.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 10 Jul 2018 20:55:12 +0300 |
parents | 85c8fecd7309 |
children | 56a8cfb422ae |
comparison
equal
deleted
inserted
replaced
2201:85c8fecd7309 | 2202:b91e766acbd4 |
---|---|
584 </section> | 584 </section> |
585 | 585 |
586 </section> | 586 </section> |
587 | 587 |
588 | 588 |
589 <section id="http" name="HTTP"> | 589 <section id="http" name="HTTP Request"> |
590 | 590 |
591 <para> | 591 <para> |
592 The <literal>HTTP</literal> object is available only in the | 592 The HTTP request object is available only in the |
593 <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. |
594 All string properties of the <literal>HTTP</literal> object are | 594 All string properties of the object are <link id="string">byte strings</link>. |
595 <link id="string">byte strings</link>. | 595 |
596 </para> | |
597 | |
598 | |
599 <section id="http_request" name="Request"> | |
600 | |
601 <para> | |
602 <list type="tag"> | 596 <list type="tag"> |
603 | 597 |
604 <tag-name><literal>r.args{}</literal></tag-name> | 598 <tag-name><literal>r.args{}</literal></tag-name> |
605 <tag-desc> | 599 <tag-desc> |
606 request arguments object, read-only | 600 request arguments object, read-only |
767 </list> | 761 </list> |
768 </para> | 762 </para> |
769 | 763 |
770 </section> | 764 </section> |
771 | 765 |
772 </section> | 766 |
773 | 767 <section id="stream" name="Stream Session"> |
774 | 768 |
775 <section id="stream" name="Stream"> | 769 <para> |
776 | 770 The stream session object is available only in the |
777 <para> | |
778 The <literal>stream</literal> object is available only in the | |
779 <link doc="../stream/ngx_stream_js_module.xml">ngx_stream_js_module</link> | 771 <link doc="../stream/ngx_stream_js_module.xml">ngx_stream_js_module</link> |
780 module. | 772 module. |
781 All string properties of the <literal>stream</literal> object are | 773 All string properties of the object are <link id="string">byte strings</link>. |
782 <link id="string">byte strings</link>. | 774 |
783 </para> | |
784 | |
785 | |
786 <section id="stream_session" name="Session"> | |
787 | |
788 <para> | |
789 <list type="tag"> | 775 <list type="tag"> |
790 | 776 |
791 <tag-name><literal>s.remoteAddress</literal></tag-name> | 777 <tag-name><literal>s.remoteAddress</literal></tag-name> |
792 <tag-desc> | 778 <tag-desc> |
793 client address, read-only | 779 client address, read-only |
857 on the <literal>error</literal> level of logging | 843 on the <literal>error</literal> level of logging |
858 </tag-desc> | 844 </tag-desc> |
859 | 845 |
860 </list> | 846 </list> |
861 </para> | 847 </para> |
862 | |
863 </section> | |
864 | 848 |
865 </section> | 849 </section> |
866 | 850 |
867 | 851 |
868 <section id="example" name="Examples"> | 852 <section id="example" name="Examples"> |