comparison xml/en/docs/http/ngx_http_js_module.xml @ 2651:b4991bbd64ee

Documented the js_header_filter directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Mon, 08 Feb 2021 12:30:01 +0000
parents 33468af2eaf7
children 9e39e64bff84
comparison
equal deleted inserted replaced
2650:2ab5aa4d5b04 2651:b4991bbd64ee
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
8 8
9 <module name="Module ngx_http_js_module" 9 <module name="Module ngx_http_js_module"
10 link="/en/docs/http/ngx_http_js_module.html" 10 link="/en/docs/http/ngx_http_js_module.html"
11 lang="en" 11 lang="en"
12 rev="22"> 12 rev="23">
13 13
14 <section id="summary"> 14 <section id="summary">
15 15
16 <para> 16 <para>
17 The <literal>ngx_http_js_module</literal> module is used to implement 17 The <literal>ngx_http_js_module</literal> module is used to implement
131 </para> 131 </para>
132 132
133 </directive> 133 </directive>
134 134
135 135
136 <directive name="js_header_filter">
137 <syntax><value>function</value> | <value>module.function</value></syntax>
138 <default/>
139 <context>location</context>
140 <context>limit_except</context>
141 <appeared-in>0.5.1</appeared-in>
142
143 <para>
144 Sets an njs function as a response header filter.
145 The directive allows changing arbitrary header fields of a response header.
146 </para>
147
148 </directive>
149
150
136 <directive name="js_import"> 151 <directive name="js_import">
137 <syntax><value>module.js</value> | 152 <syntax><value>module.js</value> |
138 <value>export_name from module.js</value></syntax> 153 <value>export_name from module.js</value></syntax>
139 <default/> 154 <default/>
140 <context>http</context> 155 <context>http</context>