Starshatter_Open
Open source Starshatter engine
|
#include <HttpServer.h>
Public Types | |
enum | METHOD { HTTP_OPTIONS, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_DELETE, HTTP_TRACE, HTTP_CONNECT } |
Public Member Functions | |
HttpRequest (const char *request=0) | |
~HttpRequest () | |
operator Text () | |
void | ParseRequest (Text request) |
void | ParseCookie (const char *param) |
int | Method () const |
Text | URI () const |
Text | Content () const |
Text | RequestLine () const |
List< HttpParam > & | GetQuery () |
List< HttpParam > & | GetHeaders () |
List< HttpParam > & | GetCookies () |
NetAddr | GetClientAddr () const |
void | SetClientAddr (const NetAddr &a) |
Text | GetParam (const char *name) |
Text | GetHeader (const char *name) |
void | SetHeader (const char *name, const char *value) |
void | AddHeader (const char *name, const char *value) |
Text | GetCookie (const char *name) |
void | SetCookie (const char *name, const char *value) |
void | AddCookie (const char *name, const char *value) |
Text | DecodeParam (const char *value) |
Static Public Member Functions | |
static const char * | TYPENAME () |
static Text | EncodeParam (const char *value) |
Definition at line 71 of file HttpServer.h.
enum HttpRequest::METHOD |
Definition at line 76 of file HttpServer.h.
HttpRequest::HttpRequest | ( | const char * | request = 0 | ) |
Definition at line 216 of file HttpServer.cpp.
HttpRequest::~HttpRequest | ( | ) |
Definition at line 223 of file HttpServer.cpp.
void HttpRequest::AddCookie | ( | const char * | name, |
const char * | value | ||
) |
Definition at line 544 of file HttpServer.cpp.
void HttpRequest::AddHeader | ( | const char * | name, |
const char * | value | ||
) |
Definition at line 502 of file HttpServer.cpp.
|
inline |
Definition at line 97 of file HttpServer.h.
Text HttpRequest::DecodeParam | ( | const char * | value | ) |
Definition at line 554 of file HttpServer.cpp.
|
static |
Definition at line 607 of file HttpServer.cpp.
|
inline |
Definition at line 104 of file HttpServer.h.
Text HttpRequest::GetCookie | ( | const char * | name | ) |
Definition at line 512 of file HttpServer.cpp.
Definition at line 102 of file HttpServer.h.
Text HttpRequest::GetHeader | ( | const char * | name | ) |
Definition at line 470 of file HttpServer.cpp.
Definition at line 101 of file HttpServer.h.
Text HttpRequest::GetParam | ( | const char * | name | ) |
Definition at line 454 of file HttpServer.cpp.
Definition at line 100 of file HttpServer.h.
|
inline |
Definition at line 95 of file HttpServer.h.
HttpRequest::operator Text | ( | ) |
Definition at line 670 of file HttpServer.cpp.
void HttpRequest::ParseCookie | ( | const char * | param | ) |
Definition at line 397 of file HttpServer.cpp.
void HttpRequest::ParseRequest | ( | Text | request | ) |
Definition at line 233 of file HttpServer.cpp.
|
inline |
Definition at line 98 of file HttpServer.h.
|
inline |
Definition at line 105 of file HttpServer.h.
void HttpRequest::SetCookie | ( | const char * | name, |
const char * | value | ||
) |
Definition at line 526 of file HttpServer.cpp.
void HttpRequest::SetHeader | ( | const char * | name, |
const char * | value | ||
) |
Definition at line 484 of file HttpServer.cpp.
|
inlinestatic |
Definition at line 74 of file HttpServer.h.
|
inline |
Definition at line 96 of file HttpServer.h.