| 
    EHS Embedded HTTP Server
    1.5.0.132
    
   
   | 
  
  
  
 
This class represents a clients HTTP request. More...
#include <httprequest.h>
Public Member Functions | |
| virtual | ~HttpRequest () | 
| Destructor.  | |
| std::string | RemoteAddress () | 
| Retrieves the peer's IP address.   | |
| int | RemotePort () | 
| Retrieves the peer's port.   | |
| std::string | LocalAddress () | 
| Retrieves the local IP address.   | |
| int | LocalPort () | 
| Retrieves the local port.   | |
| std::string | Address () | 
| Retrieves the peer's IP address.   | |
| int | Port () | 
| Retrieves the peer's port.   | |
| int | Id () const | 
| Retrieves this request's Id.   | |
| EHSConnection * | Connection () const | 
| Retrieves the receiving connection.   | |
| RequestMethod | Method () const | 
| Retrieves the request method.   | |
| bool | Secure () const | 
| Retrieves the security status.   | |
| bool | ClientDisconnected () | 
| Retrieves the client connection status.   | |
| const std::string & | Uri () const | 
| Retrieves this request's URI.   | |
| const std::string & | HttpVersion () const | 
| Retrieves the HTTP version.   | |
| const std::string & | Body () const | 
| Retrieves this request's body.   | |
| StringCaseMap & | Headers () | 
| Retrieves HTTP headers.   | |
| FormValueMap & | FormValues () | 
| Retrieves form values.   | |
| CookieMap & | Cookies () | 
| Retrieves cookies.   | |
| FormValue & | FormValues (const std::string &name) | 
| Retrieves a specific form value.   | |
| std::string | Headers (const std::string &name) | 
| Retrieves a specific HTTP header.   | |
| void | SetHeader (const std::string &name, const std::string &value) | 
| Sets a single request header.   | |
| std::string | Cookies (const std::string &name) | 
| Retrieves a specific cookie value.   | |
Friends | |
| class | EHSConnection | 
| class | EHS | 
This class represents a clients HTTP request.
It contans pre-parsed data like cookies, form data and header information.
| std::string Address | ( | ) |  [inline] | 
        
Retrieves the peer's IP address.
Definition at line 97 of file httprequest.h.
References RemoteAddress().
 Here is the call graph for this function:| const std::string& Body | ( | ) |  const [inline] | 
        
Retrieves this request's body.
Definition at line 153 of file httprequest.h.
| bool ClientDisconnected | ( | ) | 
Retrieves the client connection status.
| EHSConnection* Connection | ( | ) |  const [inline] | 
        
Retrieves the receiving connection.
Definition at line 117 of file httprequest.h.
| CookieMap& Cookies | ( | ) |  [inline] | 
        
Retrieves cookies.
Definition at line 171 of file httprequest.h.
| std::string Cookies | ( | const std::string & | name | ) |  [inline] | 
        
Retrieves a specific cookie value.
| name | The name of the cookie to be retrieved. | 
Definition at line 213 of file httprequest.h.
| FormValueMap& FormValues | ( | ) |  [inline] | 
        
Retrieves form values.
Definition at line 165 of file httprequest.h.
| FormValue& FormValues | ( | const std::string & | name | ) |  [inline] | 
        
Retrieves a specific form value.
| name | The name of the form element to be retrieved. | 
Definition at line 178 of file httprequest.h.
| StringCaseMap& Headers | ( | ) |  [inline] | 
        
Retrieves HTTP headers.
Definition at line 159 of file httprequest.h.
| std::string Headers | ( | const std::string & | name | ) |  [inline] | 
        
Retrieves a specific HTTP header.
| name | The name of the HTTP header to be retrieved. | 
Definition at line 188 of file httprequest.h.
| const std::string& HttpVersion | ( | ) |  const [inline] | 
        
Retrieves the HTTP version.
Definition at line 147 of file httprequest.h.
| int Id | ( | ) |  const [inline] | 
        
Retrieves this request's Id.
Definition at line 111 of file httprequest.h.
| std::string LocalAddress | ( | ) | 
Retrieves the local IP address.
| int LocalPort | ( | ) | 
Retrieves the local port.
| RequestMethod Method | ( | ) |  const [inline] | 
        
Retrieves the request method.
Definition at line 123 of file httprequest.h.
| int Port | ( | ) |  [inline] | 
        
Retrieves the peer's port.
Definition at line 105 of file httprequest.h.
References RemotePort().
 Here is the call graph for this function:| std::string RemoteAddress | ( | ) | 
Retrieves the peer's IP address.
Referenced by Address().
 Here is the caller graph for this function:| int RemotePort | ( | ) | 
Retrieves the peer's port.
Referenced by Port().
 Here is the caller graph for this function:| bool Secure | ( | ) |  const [inline] | 
        
Retrieves the security status.
Definition at line 129 of file httprequest.h.
| void SetHeader | ( | const std::string & | name, | 
| const std::string & | value | ||
| ) |  [inline] | 
        
Sets a single request header.
This method is intended for generating synthetic headers (for example when implementing HTTP basic authentication).
| name | The name of the HTTP header to be set. | 
| value | The value of the HTTP header to be set. | 
Definition at line 203 of file httprequest.h.
| const std::string& Uri | ( | ) |  const [inline] | 
        
Retrieves this request's URI.
Definition at line 141 of file httprequest.h.