|  | Qore HttpServerUtil Module Reference 1.3
    | 
The HttpServerUtil module provides a base code for the HttpServer module and code requiring HttpServer definitions but not the entire HttpServer module itself.
To use this module, use "%requires HttpServerUtil" in your code.
All the public symbols in the module are defined in the HttpServer namespace
The main classes are:
See also:
The HTTP listener and server set the context hash as follows when handling HTTP requests
| Key | Type | Description | 
| auth | *string | the original Authorizationheader value, if any | 
| char_encoding | string | the character encoding of the Socket object handling the request | 
| client-cert | SSLCertificate | the client certificate if the server is configured to capture them and one is present in the request | 
| close | *bool | set to True if the connection should be closed after responding (as derived from request headers) | 
| debug | *bool | True if the debug flag is enabled on the HTTP server | 
| handler_name | string | the name of the handler serving the request | 
| hdr | hash | the header information as returned by Socket::readHTTPHeader() | 
| id | int | the ID for this socket connection; note that socket connections may be reused by proxies, so this ID cannot be used to identify the peer | 
| handler_name | string | the name of the handler serving the request | 
| header-info | hash | a hash of information as returned from the output info argument to Socket::readHTTPHeader() | 
| listener-id | string | a unique ID for the listener serving the request | 
| logger | LoggerInterface | a LoggerInterface object for the HTTP server | 
| masked_path | string | the URI path after URL decoding and masking for sensitive information | 
| orig_path | string | the URI path in the request after URL decoding | 
| peer-info | hash | information about the remote socket as returned by Socket::getPeerInfo() | 
| raw_path | string | the raw URI request path in the request | 
| response-encoding | *string | any value given by any "Accept-Charset"in the request | 
| root_path | *string | the root URL path matched if the request was matched by a URL prefix | 
| socket | string | the bind address used to bind the listener ( "socket-info"provides more detailed information) | 
| socket-info | hash | information about the listening socket as returned by Socket::getSocketInfo() | 
| ssl | *bool | True if the request was encrypted with HTTPS | 
| url | hash | a hash with a pathkey giving the URI path in the request | 
| user | *string | set by the authenticator if the request was authenticated to a specific user | 
| uctx | *hash | any user thread context for the listener (see HttpListenerInterface::addUserThreadContext()) | 
308 Permanent Redirect response (issue 4169)HEAD requests and a Transfer-Encoding: chunked header in the response (issue 4109)root_path to the context hash if the path was matched by a URL path prefix (issue 570)