#include <webserver.hh>
Public Types | |
| enum | req_type { rInvalid, rGet, rPost, rHead, rOptions, rPut, rDelete, rTrace, rConnect } |
| Request type. More... | |
|
typedef std::map< std::string, std::string, header_sort > | header_type |
| header type (name/token) | |
Public Member Functions | |
| request_t () | |
| Constructor. | |
| request_t (int fd) | |
| Constructor. | |
| ~request_t () | |
| Destructor. | |
| bool | read (int fd) |
| Read a request from fd. | |
| void | SetType (req_type p) |
| Set type. | |
| req_type | GetType () const |
| Get type. | |
| void | SetUrl (const char *p) |
| Set URL. | |
| const char * | GetUrl () const |
| Get URL. | |
| std::string | GetDemangledUrl () const |
| Get demangled URL. | |
| header_type & | Header () |
| Get header. | |
| const header_type & | Header () const |
| Get header. | |
| bool | KeepAlive () const |
| Test the KeepAlive flag. | |
| const char * | GetData () const |
| Get data. | |
| char * | GetData () |
| Get data. | |
| void | SetData (const char *p, int len) |
| Set data. | |
| void | Reserve (int len) |
| Reserve data array. | |
| int | GetLength () const |
| Get length. | |
| int | GetHttpVersion () const |
| Get HTTP version: 10 (1.0) or 11 (1.1). | |
| const browser_t & | GetBrowser () const |
| Get browser type. | |
Classes | |
| struct | browser_t |
| class | header_sort |
| Header sort orde. More... | |
brief Server request
1.5.4