Kodi Documentation  18.0
Kodi is an open source media player and entertainment hub.
CHttpHeader Class Reference

#include <HttpHeader.h>

Public Types

typedef std::pair< std::string, std::string > HeaderParamValue
 
typedef std::vector< HeaderParamValueHeaderParams
 
typedef HeaderParams::iterator HeaderParamsIter
 

Public Member Functions

 CHttpHeader ()
 
 ~CHttpHeader ()
 
void Parse (const std::string &strData)
 
void AddParam (const std::string &param, const std::string &value, const bool overwrite=false)
 
std::string GetValue (const std::string &strParam) const
 
std::vector< std::string > GetValues (std::string strParam) const
 
std::string GetHeader (void) const
 
std::string GetMimeType (void) const
 
std::string GetCharset (void) const
 
std::string GetProtoLine () const
 
bool IsHeaderDone (void) const
 
void Clear ()
 

Protected Member Functions

std::string GetValueRaw (const std::string &strParam) const
 
bool ParseLine (const std::string &headerLine)
 

Protected Attributes

HeaderParams m_params
 
std::string m_protoLine
 
bool m_headerdone
 
std::string m_lastHeaderLine
 

Static Protected Attributes

static const char *const m_whitespaceChars = " \t"
 

Member Typedef Documentation

§ HeaderParams

§ HeaderParamsIter

typedef HeaderParams::iterator CHttpHeader::HeaderParamsIter

§ HeaderParamValue

typedef std::pair<std::string, std::string> CHttpHeader::HeaderParamValue

Constructor & Destructor Documentation

§ CHttpHeader()

CHttpHeader::CHttpHeader ( )

§ ~CHttpHeader()

CHttpHeader::~CHttpHeader ( )
default

Member Function Documentation

§ AddParam()

void CHttpHeader::AddParam ( const std::string &  param,
const std::string &  value,
const bool  overwrite = false 
)

§ Clear()

void CHttpHeader::Clear ( )

§ GetCharset()

std::string CHttpHeader::GetCharset ( void  ) const

§ GetHeader()

std::string CHttpHeader::GetHeader ( void  ) const

§ GetMimeType()

std::string CHttpHeader::GetMimeType ( void  ) const

§ GetProtoLine()

std::string CHttpHeader::GetProtoLine ( ) const
inline

§ GetValue()

std::string CHttpHeader::GetValue ( const std::string &  strParam) const

§ GetValueRaw()

std::string CHttpHeader::GetValueRaw ( const std::string &  strParam) const
protected

§ GetValues()

std::vector< std::string > CHttpHeader::GetValues ( std::string  strParam) const

§ IsHeaderDone()

bool CHttpHeader::IsHeaderDone ( void  ) const
inline

§ Parse()

void CHttpHeader::Parse ( const std::string &  strData)

§ ParseLine()

bool CHttpHeader::ParseLine ( const std::string &  headerLine)
protected

Member Data Documentation

§ m_headerdone

bool CHttpHeader::m_headerdone
protected

§ m_lastHeaderLine

std::string CHttpHeader::m_lastHeaderLine
protected

§ m_params

HeaderParams CHttpHeader::m_params
protected

§ m_protoLine

std::string CHttpHeader::m_protoLine
protected

§ m_whitespaceChars

const char *const CHttpHeader::m_whitespaceChars = " \t"
staticprotected

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