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

Data Structures

class  _response

Public Types

typedef std::map< std::string, WSHeaderVARS

Public Member Functions

 WSResponse (const WSRequest &request)
 WSResponse (const WSRequest &request, int maxRedirs, bool trustedLocation, bool followAny)
bool IsSuccessful () const
bool IsChunkedTransfer () const
size_t GetContentLength () const
int ReadContent (char *buf, int 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

Static Public Member Functions

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

Private Member Functions

void init (const WSRequest &request, int maxRedirs, bool trustedLocation, bool followAny)
 WSResponse (const WSResponse &)
WSResponse & operator= (const WSResponse &)

Private Attributes

_responsep

Detailed Description

Definition at line 41 of file wsresponse.h.

Member Typedef Documentation

◆ VARS

typedef std::map<std::string, WSHeader> NSROOT::WSResponse::VARS

Definition at line 44 of file wsresponse.h.

Constructor & Destructor Documentation

◆ WSResponse() [1/2]

NSROOT::WSResponse::WSResponse ( const WSRequest & request)
inline

Definition at line 46 of file wsresponse.h.

◆ WSResponse() [2/2]

NSROOT::WSResponse::WSResponse ( const WSRequest & request,
int maxRedirs,
bool trustedLocation,
bool followAny )
inline

Definition at line 48 of file wsresponse.h.

◆ ~WSResponse()

WSResponse::~WSResponse ( )

Definition at line 79 of file wsresponse.cpp.

Member Function Documentation

◆ GetConsumed()

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

Definition at line 56 of file wsresponse.h.

◆ GetContentLength()

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

Definition at line 54 of file wsresponse.h.

◆ GetHeaderValue() [1/2]

const std::string & NSROOT::WSResponse::GetHeaderValue ( const std::string & header) const
inline

Definition at line 64 of file wsresponse.h.

◆ GetHeaderValue() [2/2]

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

Definition at line 60 of file wsresponse.h.

◆ GetRequestHeaders()

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

Definition at line 68 of file wsresponse.h.

◆ GetStatusCode()

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

Definition at line 57 of file wsresponse.h.

◆ init()

void WSResponse::init ( const WSRequest & request,
int maxRedirs,
bool trustedLocation,
bool followAny )
private

Definition at line 40 of file wsresponse.cpp.

◆ IsChunkedTransfer()

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

Definition at line 53 of file wsresponse.h.

◆ IsSuccessful()

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

Definition at line 52 of file wsresponse.h.

◆ ReadContent()

int NSROOT::WSResponse::ReadContent ( char * buf,
int buflen )
inline

Definition at line 55 of file wsresponse.h.

◆ ReadHeaderLine()

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

Definition at line 86 of file wsresponse.cpp.

◆ Redirection()

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

Definition at line 58 of file wsresponse.h.

Field Documentation

◆ p

_response* NSROOT::WSResponse::p
private

Definition at line 136 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