From 3d51f859bdac439a1679d66094b8694b8e78b970 Mon Sep 17 00:00:00 2001 From: Chris Darroch Date: Tue, 21 Aug 2007 21:05:46 +0000 Subject: [PATCH] Fix some typos, whitespace, and formatting. Make sure all options are listed in appropriate locations. Deprecate "add" in favour of "set" throughout. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@568283 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_headers.xml | 71 +++++++++++++++++---------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/docs/manual/mod/mod_headers.xml b/docs/manual/mod/mod_headers.xml index a25740db85..4cc57b6005 100644 --- a/docs/manual/mod/mod_headers.xml +++ b/docs/manual/mod/mod_headers.xml @@ -97,7 +97,7 @@ headers bottlenecks between the client and the server. - Header add MyHeader "%D %t" + Header set MyHeader "%D %t"

results in this header being added to the response:

@@ -111,7 +111,7 @@ headers Say hello to Joe - Header add MyHeader "Hello Joe. It took %D microseconds \
+ Header set MyHeader "Hello Joe. It took %D microseconds \
for Apache to serve this request."
@@ -125,32 +125,34 @@ headers
  • Conditionally send MyHeader on the response if and - only if header "MyRequestHeader" is present on the request. This - is useful for constructing headers in response to some client + only if header MyRequestHeader is present on the request. + This is useful for constructing headers in response to some client stimulus. Note that this example requires the services of the mod_setenvif module. - SetEnvIf MyRequestHeader value HAVE_MyRequestHeader
    - Header add MyHeader "%D %t mytext" env=HAVE_MyRequestHeader
    -
    + SetEnvIf MyRequestHeader myvalue HAVE_MyRequestHeader
    + Header set MyHeader "%D %t mytext" env=HAVE_MyRequestHeader + -

    If the header MyRequestHeader: value is present on - the HTTP request, the response will contain the following header:

    +

    If the header MyRequestHeader: myvalue is present on + the HTTP request, the response will contain the following header:

    - - MyHeader: D=3775428 t=991424704447256 mytext - -
  • -
  • Enable DAV to work with Apache running HTTP through SSL hardware - (problem description) by replacing https: with - http: in the Destination header: - - RequestHeader edit Destination ^https: http: early - + + MyHeader: D=3775428 t=991424704447256 mytext +
  • +
  • + Enable DAV to work with Apache running HTTP through SSL hardware + (problem + description) by replacing https: with + http: in the Destination header: + + + RequestHeader edit Destination ^https: http: early + +
  • @@ -186,8 +188,8 @@ headers
    The request header is added to the existing set of headers, even if this header already exists. This can result in two (or more) headers having the same name. This can lead to - unforeseen consequences, and in general append should be - used instead.
    + unforeseen consequences, and in general set or + append should be used instead.
    unset
    The request header of this name is removed, if it exists. If @@ -204,10 +206,10 @@ headers

    This argument is followed by a header name, which can include the final colon, but it is not required. Case is - ignored. For add, append and - set a value is given as the third argument. If a + ignored. For set, append and + add a value is given as the third argument. If a value contains spaces, it should be surrounded by double - quotes. For unset, no value should be given. + quotes. For unset, no value should be given. value may be a character string, a string containing format specifiers or a combination of both. The supported format specifiers are the same as for the Header, @@ -275,8 +277,8 @@ headers

    The response header is added to the existing set of headers, even if this header already exists. This can result in two (or more) headers having the same name. This can lead to - unforeseen consequences, and in general "append" should be - used instead.
    + unforeseen consequences, and in general set or + append should be used instead.
    unset
    The response header of this name is removed, if it exists. @@ -285,7 +287,7 @@ headers
    echo
    Request headers with this name are echoed back in the - response headers. header may be a + response headers. header may be a regular expression. value must be omitted.
    @@ -299,14 +301,15 @@ headers

    This argument is followed by a header name, which can include the final colon, but it is not required. Case is - ignored for set, append, add - and unset. The header name for echo - is case sensitive and may be a regular + ignored for set, append, add, + unset, and edit. + The header name for echo + is case sensitive and may be a regular expression.

    -

    For add, append and set a +

    For set, append and add a value is specified as the third argument. If value - contains spaces, it should be surrounded by doublequotes. + contains spaces, it should be surrounded by double quotes. value may be a character string, a string containing format specifiers or a combination of both. The following format specifiers are supported in value:

    @@ -344,7 +347,7 @@ headers +StdEnvVars. If SSLOptions +StdEnvVars must be enabled anyway for some other reason, %e will be more efficient than %s.

    - +

    For edit there is both a value argument which is a regular expression, -- 2.40.0