Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HttpRequest Class Reference

#include <HttpServer.h>

List of all members.

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)

Detailed Description

Definition at line 71 of file HttpServer.h.


Member Enumeration Documentation

Enumerator:
HTTP_OPTIONS 
HTTP_GET 
HTTP_HEAD 
HTTP_POST 
HTTP_PUT 
HTTP_DELETE 
HTTP_TRACE 
HTTP_CONNECT 

Definition at line 76 of file HttpServer.h.


Constructor & Destructor Documentation

HttpRequest::HttpRequest ( const char *  request = 0)

Definition at line 216 of file HttpServer.cpp.

HttpRequest::~HttpRequest ( )

Definition at line 223 of file HttpServer.cpp.


Member Function Documentation

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.

Text HttpRequest::Content ( ) const
inline

Definition at line 97 of file HttpServer.h.

Text HttpRequest::DecodeParam ( const char *  value)

Definition at line 554 of file HttpServer.cpp.

Text HttpRequest::EncodeParam ( const char *  value)
static

Definition at line 607 of file HttpServer.cpp.

NetAddr HttpRequest::GetClientAddr ( ) const
inline

Definition at line 104 of file HttpServer.h.

Text HttpRequest::GetCookie ( const char *  name)

Definition at line 512 of file HttpServer.cpp.

List<HttpParam>& HttpRequest::GetCookies ( )
inline

Definition at line 102 of file HttpServer.h.

Text HttpRequest::GetHeader ( const char *  name)

Definition at line 470 of file HttpServer.cpp.

List<HttpParam>& HttpRequest::GetHeaders ( )
inline

Definition at line 101 of file HttpServer.h.

Text HttpRequest::GetParam ( const char *  name)

Definition at line 454 of file HttpServer.cpp.

List<HttpParam>& HttpRequest::GetQuery ( )
inline

Definition at line 100 of file HttpServer.h.

int HttpRequest::Method ( ) const
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.

Text HttpRequest::RequestLine ( ) const
inline

Definition at line 98 of file HttpServer.h.

void HttpRequest::SetClientAddr ( const NetAddr a)
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.

static const char* HttpRequest::TYPENAME ( )
inlinestatic

Definition at line 74 of file HttpServer.h.

Text HttpRequest::URI ( ) const
inline

Definition at line 96 of file HttpServer.h.


The documentation for this class was generated from the following files: