Mercurial > hg > nginx-site
comparison xml/en/docs/njs/reference.xml @ 2775:9ce9239c6b7b
Documented "verify" key in ngx_fetch.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 14 Oct 2021 18:53:16 +0100 |
parents | 7255a5468474 |
children | bc79ab31073a |
comparison
equal
deleted
inserted
replaced
2774:7255a5468474 | 2775:9ce9239c6b7b |
---|---|
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="75"> | 12 rev="76"> |
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 |
860 <tag-desc> | 860 <tag-desc> |
861 HTTP method, | 861 HTTP method, |
862 by default the <literal>GET</literal> method is used | 862 by default the <literal>GET</literal> method is used |
863 </tag-desc> | 863 </tag-desc> |
864 | 864 |
865 <tag-name id="fetch_verify"><literal>verify</literal></tag-name> | |
866 <tag-desc> | |
867 enables or disables verification of the HTTPS server certificate, | |
868 by default is <literal>true</literal> | |
869 (<link doc="changes.xml" id="njs0.7.0">0.7.0</link>) | |
870 </tag-desc> | |
871 | |
865 </list> | 872 </list> |
866 Example: | 873 Example: |
867 <example> | 874 <example> |
868 ngx.fetch('http://nginx.org/') | 875 ngx.fetch('http://nginx.org/') |
869 .then(reply => reply.text()) | 876 .then(reply => reply.text()) |