# HG changeset patch # User Yaroslav Zhuravlev # Date 1498565634 -10800 # Node ID e1f0ef8cff5ec04033848cb8f0342fff910bfe6a # Parent 1ece24f10f2a6908b0e2d0bc5352f5669a835663 Documented the "add_trailer" directive. diff --git a/xml/en/docs/http/ngx_http_headers_module.xml b/xml/en/docs/http/ngx_http_headers_module.xml --- a/xml/en/docs/http/ngx_http_headers_module.xml +++ b/xml/en/docs/http/ngx_http_headers_module.xml @@ -10,7 +10,7 @@ + rev="9">
@@ -75,6 +75,39 @@ the header field will be added regardles + + +name value +[always] + +http +server +location +if in location +1.13.2 + + +Adds the specified field to the end of a response provided that +the response code equals 200, 201, 206, 301, 302, 303, 307, or 308. +The value can contain variables. + + + +There could be several add_trailer directives. +These directives are inherited from the previous level if and +only if there are no +add_trailer +directives defined on the current level. + + + +If the always parameter is specified +the specified field will be added regardless of the response code. + + + + + [modified] time diff --git a/xml/ru/docs/http/ngx_http_headers_module.xml b/xml/ru/docs/http/ngx_http_headers_module.xml --- a/xml/ru/docs/http/ngx_http_headers_module.xml +++ b/xml/ru/docs/http/ngx_http_headers_module.xml @@ -10,7 +10,7 @@ + rev="9">
@@ -73,6 +73,37 @@ add_header Cache-Control private; + + +имя значение +[always] + +http +server +location +if в location +1.13.2 + + +Добавляет указанное поле в конец ответа при условии, что код ответа +равен 200, 201, 206, 301, 302, 303, 307 или 308. +В значении можно использовать переменные. + + + +Директив add_trailer может быть несколько. +Директивы наследуются с предыдущего уровня при условии, что на данном +уровне не описаны свои директивы add_trailer. + + + +Если указан параметр always, +то указанное поле будет добавлено независимо от кода ответа. + + + + + [modified] время