HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_WebServerResponse Class Reference

#include <HOM_WebServerResponse.h>

Public Member Functions

 SWIGOUT (%kwargs HOM_WebServerResponse(const HOM_BinaryString &, int, const char *, bool, bool);) HOM_WebServerResponse(const HOM_BinaryString &data
 
 HOM_WebServerResponse (const NET_WebResponse &response)
 
 ~HOM_WebServerResponse ()
 
std::string __repr__ ()
 
void setHeader (const char *header_name, const char *header_value)
 
long long _getNETHTTPResponsePointer ()
 
std::map< std::string,
std::string
headers ()
 
std::string statusLabel ()
 
std::string body ()
 

Public Attributes

int status =200
 
int const char * content_type ="text/html"
 
int const char bool is_file_name =false
 
int const char bool bool delete_file =false)
 
NET_WebResponse myResponse
 

Detailed Description

Definition at line 30 of file HOM_WebServerResponse.h.

Constructor & Destructor Documentation

HOM_WebServerResponse::HOM_WebServerResponse ( const NET_WebResponse response)
inline

Definition at line 42 of file HOM_WebServerResponse.h.

HOM_WebServerResponse::~HOM_WebServerResponse ( )
inline

Definition at line 46 of file HOM_WebServerResponse.h.

Member Function Documentation

std::string HOM_WebServerResponse::__repr__ ( )
long long HOM_WebServerResponse::_getNETHTTPResponsePointer ( )
inline

Definition at line 60 of file HOM_WebServerResponse.h.

std::string HOM_WebServerResponse::body ( )
inline

Definition at line 78 of file HOM_WebServerResponse.h.

std::map<std::string, std::string> HOM_WebServerResponse::headers ( )
inline

Definition at line 63 of file HOM_WebServerResponse.h.

void HOM_WebServerResponse::setHeader ( const char *  header_name,
const char *  header_value 
)
inline

Definition at line 51 of file HOM_WebServerResponse.h.

std::string HOM_WebServerResponse::statusLabel ( )
inline

Definition at line 71 of file HOM_WebServerResponse.h.

HOM_WebServerResponse::SWIGOUT ( %kwargs HOM_WebServerResponse(const HOM_BinaryString &, int, const char *, bool, bool);  ) const

Member Data Documentation

int const char* HOM_WebServerResponse::content_type ="text/html"

Definition at line 37 of file HOM_WebServerResponse.h.

int const char bool bool HOM_WebServerResponse::delete_file =false)

Definition at line 39 of file HOM_WebServerResponse.h.

int const char bool HOM_WebServerResponse::is_file_name =false

Definition at line 38 of file HOM_WebServerResponse.h.

NET_WebResponse HOM_WebServerResponse::myResponse

Definition at line 84 of file HOM_WebServerResponse.h.

int HOM_WebServerResponse::status =200

Definition at line 36 of file HOM_WebServerResponse.h.


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