From 739f49597901ccf25e8bdd8ef281232274700e2f Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 16 Sep 2010 05:33:25 +0200 Subject: [PATCH] doc: Described the headers added by htparser. --- doc/htparser.doc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/doc/htparser.doc b/doc/htparser.doc index cc69d57..40ae6ee 100644 --- a/doc/htparser.doc +++ b/doc/htparser.doc @@ -77,6 +77,35 @@ OPTIONS After having daemonized, write the PID of the new process to 'PIDFILE'. +X-ASH HEADERS +------------- + +*htparser* strips away all headers from incoming requests that begin + with the `X-Ash-` prefix, and adds the following headers to requests: + +*X-Ash-Address*:: + + The IP address that the client connected from. May be an IPv6 + address. + +*X-Ash-Port*:: + + The client-side port number of the TCP connection. + +*X-Ash-Server-Address*:: + + The IP address of the server where the connection was + accepted. May be an IPv6 address. + +*X-Ash-Server-Port*:: + + The server-side port number of the TCP connection. + +*X-Ash-Protocol*:: + + Either *http* or *https*, depending on whether the request was + received by the *plain* or the *ssl* handler. + AUTHOR ------ Fredrik Tolf -- 2.11.0