changeset 448:92672f6f0ee1

Elaborated on $http_* and $sent_http_* syntax.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 16 Mar 2012 06:16:13 +0000
parents f717705f5442
children 531e2f58bd80
files xml/en/docs/http/ngx_http_core_module.xml xml/ru/docs/http/ngx_http_core_module.xml
diffstat 2 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_core_module.xml	Thu Mar 15 18:32:11 2012 +0000
+++ b/xml/en/docs/http/ngx_http_core_module.xml	Fri Mar 16 06:16:13 2012 +0000
@@ -2626,7 +2626,9 @@
 
 <tag-name><var>$http_</var><value>name</value></tag-name>
 <tag-desc>
-the <value>name</value> request header field
+arbitrary request header field;
+the last part of a variable name is the field name converted
+to lower case with dashes replaced by underscores
 </tag-desc>
 
 <tag-name><var>$https</var></tag-name>
@@ -2753,7 +2755,9 @@
 
 <tag-name><var>$sent_http_</var><value>name</value></tag-name>
 <tag-desc>
-the <value>name</value> response header field
+arbitrary response header field;
+the last part of a variable name is the field name converted
+to lower case with dashes replaced by underscores
 </tag-desc>
 
 <tag-name><var>$server_addr</var></tag-name>
--- a/xml/ru/docs/http/ngx_http_core_module.xml	Thu Mar 15 18:32:11 2012 +0000
+++ b/xml/ru/docs/http/ngx_http_core_module.xml	Fri Mar 16 06:16:13 2012 +0000
@@ -2612,7 +2612,9 @@
 
 <tag-name><var>$http_</var><value>имя</value></tag-name>
 <tag-desc>
-поле <value>имя</value> заголовка запроса
+произвольное поле заголовка запроса;
+последняя часть имени переменной соответствует имени поля, приведённому
+к нижнему регистру, с заменой символов тире на символы подчёркивания
 </tag-desc>
 
 <tag-name><var>$https</var></tag-name>
@@ -2737,7 +2739,9 @@
 
 <tag-name><var>$sent_http_</var><value>имя</value></tag-name>
 <tag-desc>
-поле <value>имя</value> заголовка ответа
+произвольное поле заголовка ответа;
+последняя часть имени переменной соответствует имени поля, приведённому
+к нижнему регистру, с заменой символов тире на символы подчёркивания
 </tag-desc>
 
 <tag-name><var>$server_addr</var></tag-name>