Mercurial > hg > nginx-site
comparison xml/en/docs/njs/reference.xml @ 2668:e067ad74b0cd
Corrected links to Response Object in njs reference.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 04 Mar 2021 16:38:14 +0000 |
parents | 2085eb315672 |
children | e53592a1d979 |
comparison
equal
deleted
inserted
replaced
2667:2085eb315672 | 2668:e067ad74b0cd |
---|---|
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> | 7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> |
8 | 8 |
9 <article name="Reference" | 9 <article name="Reference" |
10 link="/en/docs/njs/reference.html" | 10 link="/en/docs/njs/reference.html" |
11 lang="en" | 11 lang="en" |
12 rev="65"> | 12 rev="66"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 <link doc="index.xml">njs</link> provides objects, methods and properties | 17 <link doc="index.xml">njs</link> provides objects, methods and properties |
656 </tag-desc> | 656 </tag-desc> |
657 | 657 |
658 <tag-name id="response_headers"><literal>headers</literal></tag-name> | 658 <tag-name id="response_headers"><literal>headers</literal></tag-name> |
659 <tag-desc> | 659 <tag-desc> |
660 The <literal>Headers</literal> read-only object associated with the | 660 The <literal>Headers</literal> read-only object associated with the |
661 <link id="global_response"><literal>Response</literal></link>: | 661 <link id="response"><literal>Response</literal></link>: |
662 | 662 |
663 <list type="tag"> | 663 <list type="tag"> |
664 | 664 |
665 <tag-name id="headers_get"><literal>get(<value>name</value>)</literal></tag-name> | 665 <tag-name id="headers_get"><literal>get(<value>name</value>)</literal></tag-name> |
666 <tag-desc> | 666 <tag-desc> |
744 [<value>options</value>])</literal></tag-name> | 744 [<value>options</value>])</literal></tag-name> |
745 <tag-desc> | 745 <tag-desc> |
746 Makes a request to fetch an URL | 746 Makes a request to fetch an URL |
747 (<link doc="changes.xml" id="njs0.5.1">0.5.1</link>), | 747 (<link doc="changes.xml" id="njs0.5.1">0.5.1</link>), |
748 returns a <literal>Promise</literal> that resolves with | 748 returns a <literal>Promise</literal> that resolves with |
749 the <link id="global_response"><literal>Response</literal></link> object. | 749 the <link id="response"><literal>Response</literal></link> object. |
750 Only the <literal>http://</literal> scheme is supported, | 750 Only the <literal>http://</literal> scheme is supported, |
751 redirects are not handled. | 751 redirects are not handled. |
752 <para> | 752 <para> |
753 The <literal>options</literal> parameter is expected to be an object | 753 The <literal>options</literal> parameter is expected to be an object |
754 with the following keys: | 754 with the following keys: |