Public Member Functions |
| bool | isSecure () const |
| | Returns true iff the request is over a confidential channel.
|
| virtual const char * | getMethod () const =0 |
| | Returns the HTTP method of the request (GET, POST, etc.)
|
| virtual const char * | getRequestURI () const =0 |
| | Returns the request URI.
|
| virtual const char * | getRequestURL () const =0 |
| | Returns the complete request URL, including scheme, host, port, and URI.
|
| virtual const char * | getQueryString () const =0 |
| | Returns the HTTP query string appened to the request.
|
| virtual std::string | getHeader (const char *name) const =0 |
| | Returns a request header value.
|
| virtual const char * | getCookie (const char *name) const |
| | Get a cookie value supplied by the client.
|
| virtual const char * | getScheme () const =0 |
| | Returns the URL scheme of the request (http, https, ftp, ldap, etc.)
|
| virtual const char * | getHostname () const =0 |
| | Returns hostname of service that received request.
|
| virtual int | getPort () const =0 |
| | Returns incoming port.
|
| virtual std::string | getContentType () const =0 |
| | Returns the MIME type of the request, if known.
|
| virtual long | getContentLength () const =0 |
| | Returns the length of the request body, if known.
|
| virtual const char * | getRequestBody () const =0 |
| | Returns the raw request body.
|
| virtual const char * | getParameter (const char *name) const =0 |
| | Returns a decoded named parameter value from the request.
|
virtual std::vector< const
char * >::size_type | getParameters (const char *name, std::vector< const char * > &values) const =0 |
| | Returns all of the decoded values of a named parameter from the request.
|
| virtual std::string | getRemoteUser () const =0 |
| | Returns the transport-authenticated identity associated with the request, if authentication is solely handled by the transport.
|
| virtual std::string | getAuthType () const |
| | Gets the authentication type associated with the request.
|
| virtual std::string | getRemoteAddr () const =0 |
| | Returns the IP address of the client.
|
virtual const std::vector
< XSECCryptoX509 * > & | getClientCertificates () const =0 |
| | Returns the chain of certificates sent by the client.
|
Interface to HTTP requests.
To supply information from the surrounding web server environment, a shim must be supplied in the form of this interface to adapt the library to different proprietary server APIs.
This interface need not be threadsafe.