Mercurial > hg > nginx-site
diff xml/en/docs/njs/reference.xml @ 2340:537130c40c1f
Updated r.subrequest desctiption in njs.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 27 Feb 2019 20:25:42 +0300 |
parents | 39ac205f90b7 |
children | ea8ccaac18b4 |
line wrap: on
line diff
--- a/xml/en/docs/njs/reference.xml +++ b/xml/en/docs/njs/reference.xml @@ -9,7 +9,7 @@ <article name="Reference" link="/en/docs/njs/reference.html" lang="en" - rev="22"> + rev="23"> <section id="summary"> @@ -172,6 +172,18 @@ creates a subrequest with the given <lit an optional completion <literal>callback</literal>. <para> +A +<link doc="../dev/development_guide.xml.xml" id="http_subrequests">subrequest</link> +shares its input headers with the client request. +To send headers different from original headers to a proxied server, the +<link doc="../http/ngx_http_proxy_module.xml" id="proxy_set_header"/> +directive can be used. +To send a completely new set of headers to a proxied server, the +<link doc="../http/ngx_http_proxy_module.xml" id="proxy_pass_request_headers"/> +directive can be used. +</para> + +<para> If <literal>options</literal> is a string, then it holds the subrequest arguments string. Otherwise, <literal>options</literal> is expected to be