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

Public Member Functions

 WSResponse (const WSRequest &request)
 
bool IsSuccessful () const
 
bool IsChunkedTransfer () const
 
size_t GetContentLength () const
 
size_t ReadContent (char *buf, size_t buflen)
 
size_t GetConsumed () const
 
int GetStatusCode () const
 
const std::string & Redirection () const
 
bool GetHeaderValue (const std::string &header, std::string &value)
 

Static Public Member Functions

static bool ReadHeaderLine (NetSocket *socket, const char *eol, std::string &line, size_t *len)
 

Private Types

typedef std::list< std::pair< std::string, std::string > > HeaderList
 

Private Member Functions

 WSResponse (const WSResponse &)
 
WSResponseoperator= (const WSResponse &)
 
bool SendRequest (const WSRequest &request)
 
bool GetResponse ()
 
size_t ReadChunk (void *buf, size_t buflen)
 

Static Private Member Functions

static int SocketStreamReader (void *hdl, void *buf, int sz)
 
static int ChunkStreamReader (void *hdl, void *buf, int sz)
 

Private Attributes

TcpSocketm_socket
 
bool m_successful
 
int m_statusCode
 
std::string m_serverInfo
 
std::string m_etag
 
std::string m_location
 
CT_t m_contentType
 
CE_t m_contentEncoding
 
bool m_contentChunked
 
size_t m_contentLength
 
size_t m_consumed
 
char * m_chunkBuffer
 The chunk data buffer.
 
char * m_chunkPtr
 The next position to read data from the chunk.
 
char * m_chunkEOR
 The end of received data in the chunk.
 
char * m_chunkEnd
 The end of the chunk buffer.
 
Decompressorm_decoder
 
HeaderList m_headers
 

Detailed Description

Definition at line 40 of file wsresponse.h.


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