CPPMyth
Library to interoperate with MythTV server
NSROOT::WSRequest Class Reference
Collaboration diagram for NSROOT::WSRequest:

Public Member Functions

 WSRequest (const std::string &server, unsigned port)
 
 WSRequest (const std::string &server, unsigned port, bool secureURI)
 
 WSRequest (const URIParser &uri, HRM_t method=HRM_GET)
 
void RequestService (const std::string &url, HRM_t method=HRM_GET)
 
void RequestAccept (CT_t contentType)
 
void RequestAcceptEncoding (bool yesno)
 
void SetUserAgent (const std::string &value)
 
void SetContentParam (const std::string &param, const std::string &value)
 
void SetContentCustom (CT_t contentType, const char *content)
 
void SetHeader (const std::string &field, const std::string &value)
 
const std::string & GetContent () const
 
void ClearContent ()
 
void MakeMessage (std::string &msg) const
 
const std::string & GetServer () const
 
unsigned GetPort () const
 
bool IsSecureURI () const
 

Private Member Functions

void MakeMessageGET (std::string &msg, const char *method="GET") const
 
void MakeMessagePOST (std::string &msg, const char *method="POST") const
 
void MakeMessageHEAD (std::string &msg, const char *method="HEAD") const
 

Private Attributes

std::string m_server
 
unsigned m_port
 
bool m_secure_uri
 
std::string m_service_url
 
HRM_t m_service_method
 
std::string m_charset
 
CT_t m_accept
 
CT_t m_contentType
 
std::string m_contentData
 
std::map< std::string, std::string > m_headers
 
std::string m_userAgent
 

Detailed Description

Definition at line 51 of file wsrequest.h.


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