CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
NSROOT::WSResponse::_response Class Reference
Inheritance diagram for NSROOT::WSResponse::_response:
Collaboration diagram for NSROOT::WSResponse::_response:

Public Member Functions

 _response (const WSRequest &request)
bool IsSuccessful () const
bool IsChunkedTransfer () const
size_t GetContentLength () const
int 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)
const std::string & GetHeaderValue (const std::string &header) const
const VARS & GetRequestHeaders () const

Private Member Functions

 _response (const _response &)
_response & operator= (const _response &)
bool WriteRequestStream (const char *data, unsigned len) override
bool FlushRequestStream () override
bool ReadResponse ()
int 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
WS_CENCODING m_contentEncoding
bool m_hasContent
bool m_contentEmpty
bool m_contentChunked
bool m_chunkNext
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
VARS m_headers

Detailed Description

Definition at line 83 of file wsresponse.h.

Constructor & Destructor Documentation

◆ _response()

WSResponse::_response::_response ( const WSRequest & request)

Definition at line 139 of file wsresponse.cpp.

◆ ~_response()

WSResponse::_response::~_response ( )
virtual

Definition at line 188 of file wsresponse.cpp.

Member Function Documentation

◆ ChunkStreamReader()

int WSResponse::_response::ChunkStreamReader ( void * hdl,
void * buf,
int sz )
staticprivate

Definition at line 463 of file wsresponse.cpp.

◆ FlushRequestStream()

bool WSResponse::_response::FlushRequestStream ( )
overrideprivatevirtual

Implements NSROOT::WSRequestStreamSink.

Definition at line 237 of file wsresponse.cpp.

◆ GetConsumed()

size_t NSROOT::WSResponse::_response::GetConsumed ( ) const
inline

Definition at line 93 of file wsresponse.h.

◆ GetContentLength()

size_t NSROOT::WSResponse::_response::GetContentLength ( ) const
inline

Definition at line 91 of file wsresponse.h.

◆ GetHeaderValue() [1/2]

const std::string & WSResponse::_response::GetHeaderValue ( const std::string & header) const

Definition at line 564 of file wsresponse.cpp.

◆ GetHeaderValue() [2/2]

bool WSResponse::_response::GetHeaderValue ( const std::string & header,
std::string & value )

Definition at line 554 of file wsresponse.cpp.

◆ GetRequestHeaders()

const VARS & NSROOT::WSResponse::_response::GetRequestHeaders ( ) const
inline

Definition at line 99 of file wsresponse.h.

◆ GetStatusCode()

int NSROOT::WSResponse::_response::GetStatusCode ( ) const
inline

Definition at line 94 of file wsresponse.h.

◆ IsChunkedTransfer()

bool NSROOT::WSResponse::_response::IsChunkedTransfer ( ) const
inline

Definition at line 90 of file wsresponse.h.

◆ IsSuccessful()

bool NSROOT::WSResponse::_response::IsSuccessful ( ) const
inline

Definition at line 89 of file wsresponse.h.

◆ ReadChunk()

int WSResponse::_response::ReadChunk ( void * buf,
size_t buflen )
private

Definition at line 384 of file wsresponse.cpp.

◆ ReadContent()

int WSResponse::_response::ReadContent ( char * buf,
size_t buflen )

Definition at line 476 of file wsresponse.cpp.

◆ ReadResponse()

bool WSResponse::_response::ReadResponse ( )
private

Definition at line 253 of file wsresponse.cpp.

◆ Redirection()

const std::string & NSROOT::WSResponse::_response::Redirection ( ) const
inline

Definition at line 95 of file wsresponse.h.

◆ SocketStreamReader()

int WSResponse::_response::SocketStreamReader ( void * hdl,
void * buf,
int sz )
staticprivate

Definition at line 442 of file wsresponse.cpp.

◆ WriteRequestStream()

bool WSResponse::_response::WriteRequestStream ( const char * data,
unsigned len )
overrideprivatevirtual

Implements NSROOT::WSRequestStreamSink.

Definition at line 201 of file wsresponse.cpp.

Field Documentation

◆ m_chunkBuffer

char* NSROOT::WSResponse::_response::m_chunkBuffer
private

The chunk data buffer.

Definition at line 115 of file wsresponse.h.

◆ m_chunkEnd

char* NSROOT::WSResponse::_response::m_chunkEnd
private

The end of the chunk buffer.

Definition at line 118 of file wsresponse.h.

◆ m_chunkEOR

char* NSROOT::WSResponse::_response::m_chunkEOR
private

The end of received data in the chunk.

Definition at line 117 of file wsresponse.h.

◆ m_chunkNext

bool NSROOT::WSResponse::_response::m_chunkNext
private

Definition at line 112 of file wsresponse.h.

◆ m_chunkPtr

char* NSROOT::WSResponse::_response::m_chunkPtr
private

The next position to read data from the chunk.

Definition at line 116 of file wsresponse.h.

◆ m_consumed

size_t NSROOT::WSResponse::_response::m_consumed
private

Definition at line 114 of file wsresponse.h.

◆ m_contentChunked

bool NSROOT::WSResponse::_response::m_contentChunked
private

Definition at line 111 of file wsresponse.h.

◆ m_contentEmpty

bool NSROOT::WSResponse::_response::m_contentEmpty
private

Definition at line 110 of file wsresponse.h.

◆ m_contentEncoding

WS_CENCODING NSROOT::WSResponse::_response::m_contentEncoding
private

Definition at line 108 of file wsresponse.h.

◆ m_contentLength

size_t NSROOT::WSResponse::_response::m_contentLength
private

Definition at line 113 of file wsresponse.h.

◆ m_decoder

Decompressor* NSROOT::WSResponse::_response::m_decoder
private

Definition at line 119 of file wsresponse.h.

◆ m_etag

std::string NSROOT::WSResponse::_response::m_etag
private

Definition at line 106 of file wsresponse.h.

◆ m_hasContent

bool NSROOT::WSResponse::_response::m_hasContent
private

Definition at line 109 of file wsresponse.h.

◆ m_headers

VARS NSROOT::WSResponse::_response::m_headers
private

Definition at line 121 of file wsresponse.h.

◆ m_location

std::string NSROOT::WSResponse::_response::m_location
private

Definition at line 107 of file wsresponse.h.

◆ m_serverInfo

std::string NSROOT::WSResponse::_response::m_serverInfo
private

Definition at line 105 of file wsresponse.h.

◆ m_socket

TcpSocket* NSROOT::WSResponse::_response::m_socket
private

Definition at line 102 of file wsresponse.h.

◆ m_statusCode

int NSROOT::WSResponse::_response::m_statusCode
private

Definition at line 104 of file wsresponse.h.

◆ m_successful

bool NSROOT::WSResponse::_response::m_successful
private

Definition at line 103 of file wsresponse.h.


The documentation for this class was generated from the following files:
  • /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/wsresponse.h
  • /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/wsresponse.cpp