CMSDK  2.0.1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cmlabs::HTTPReply Class Reference

Public Member Functions

 HTTPReply (uint64 source=0)
 
 HTTPReply (HTTPReply *reply)
 
bool processHeader (const char *buffer, uint32 size, bool &isInvalid)
 
bool processContent (const char *buffer, uint32 size)
 
const char * getHeaderEntry (const char *entry)
 
const char * getProtocol ()
 
const char * getContent (uint32 &size)
 
bool createPage (uint8 status, uint64 time, const char *serverName, uint64 lastMod, bool keepAlive, bool cache, const char *contentType, const char *content, uint32 contentSize=0, const char *additionalHeaderEntries=NULL)
 
bool createFromFile (uint64 time, const char *serverName, uint64 ifLastMod, bool keepAlive, bool cache, const char *filename)
 
bool createOptionsResponse (uint8 status, uint64 time, const char *serverName, bool keepAlive, const char *origin, const char *operations)
 
bool createErrorPage (uint8 status, uint64 time, const char *serverName, bool keepAlive)
 
bool createAuthorizationReply (const char *realm)
 
uint32 getSize ()
 

Static Public Member Functions

static HTTPReplyCreateErrorReply (uint8 type)
 
static HTTPReplyCreateAuthorizationReply (const char *realm)
 

Public Attributes

uint8 type
 
uint64 time
 
uint64 source
 
uint32 headerLength
 
uint32 contentLength
 
bool keepAlive
 
char * data
 
std::map< std::string, std::string > entries
 
std::map< std::string, std::string > params
 

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