From: Fredrik Tolf Date: Thu, 16 Sep 2010 03:33:25 +0000 (+0200) Subject: doc: Described the headers added by htparser. X-Git-Tag: 0.1~10 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=739f49597901ccf25e8bdd8ef281232274700e2f;hp=573c55e5907bd8398deb5336f1e06c52bbfc4a8c doc: Described the headers added by htparser. --- 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