changeset 685:3f43a59a1dba

Documented possible contexts and inheritance details in the addition module.
author Vladimir Homutov <vl@nginx.com>
date Tue, 18 Sep 2012 08:44:46 +0000
parents 2ff9c3ea8c98
children f368bff5c70a
files xml/en/docs/http/ngx_http_addition_module.xml xml/ru/docs/http/ngx_http_addition_module.xml
diffstat 2 files changed, 22 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_addition_module.xml	Tue Sep 18 08:39:31 2012 +0000
+++ b/xml/en/docs/http/ngx_http_addition_module.xml	Tue Sep 18 08:44:46 2012 +0000
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_addition_module"
         link="/en/docs/http/ngx_http_addition_module.html"
         lang="en"
-        rev="1">
+        rev="2">
 
 <section id="summary">
 
@@ -43,12 +43,16 @@
 
 <directive name="add_before_body">
 <syntax><value>uri</value></syntax>
-<default/>
+<default>""</default>
+<context>http</context>
+<context>server</context>
 <context>location</context>
 
 <para>
 Adds a text returned as a result of processing a given subrequest,
 before the response body.
+The <literal>""</literal> parameter disables addition inherited from
+the previous configuration level.
 </para>
 
 </directive>
@@ -56,12 +60,16 @@
 
 <directive name="add_after_body">
 <syntax><value>uri</value></syntax>
-<default/>
+<default>""</default>
+<context>http</context>
+<context>server</context>
 <context>location</context>
 
 <para>
 Adds a text returned as a result of processing a given subrequest,
 after the response body.
+The <literal>""</literal> parameter disables addition inherited from
+the previous configuration level.
 </para>
 
 </directive>
--- a/xml/ru/docs/http/ngx_http_addition_module.xml	Tue Sep 18 08:39:31 2012 +0000
+++ b/xml/ru/docs/http/ngx_http_addition_module.xml	Tue Sep 18 08:44:46 2012 +0000
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_addition_module"
         link="/ru/docs/http/ngx_http_addition_module.html"
         lang="ru"
-        rev="1">
+        rev="2">
 
 <section id="summary">
 
@@ -43,12 +43,16 @@
 
 <directive name="add_before_body">
 <syntax><value>uri</value></syntax>
-<default/>
+<default>""</default>
+<context>http</context>
+<context>server</context>
 <context>location</context>
 
 <para>
 Добавляет перед телом ответа текст, выдаваемый в результате
 работы заданного подзапроса.
+Параметр <literal>""</literal> запрещает добавление, унаследованное
+с предыдущего уровня конфигурации.
 </para>
 
 </directive>
@@ -56,12 +60,16 @@
 
 <directive name="add_after_body">
 <syntax><value>uri</value></syntax>
-<default/>
+<default>""</default>
+<context>http</context>
+<context>server</context>
 <context>location</context>
 
 <para>
 Добавляет после тела ответа текст, выдаваемый в результате
 работы заданного подзапроса.
+Параметр <literal>""</literal> запрещает добавление, унаследованное
+с предыдущего уровня конфигурации.
 </para>
 
 </directive>