MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
APHTTPRequest Class Reference

Public Member Functions

 APHTTPRequest (QByteArray &data)
 
 ~APHTTPRequest ()=default
 
QByteArray & GetMethod (void)
 
QByteArray & GetURI (void)
 
QByteArray & GetBody (void)
 
QMap< QByteArray, QByteArray > & GetHeaders (void)
 
void Append (QByteArray &data)
 
QByteArray GetQueryValue (const QByteArray &key)
 
QMap< QByteArray, QByteArray > GetHeadersFromBody (void)
 
bool IsComplete (void)
 

Private Member Functions

QByteArray GetLine (void)
 
void Process (void)
 
void Check (void)
 

Private Attributes

int m_readPos {0}
 
QByteArray m_data
 
QByteArray m_method
 
QByteArray m_uri
 
QList< QPair< QByteArray, QByteArray > > m_queries
 
QMap< QByteArray, QByteArray > m_headers
 
QByteArray m_body
 
int m_size {0}
 
bool m_incomingPartial {false}
 

Detailed Description

Definition at line 211 of file mythairplayserver.cpp.

Constructor & Destructor Documentation

◆ APHTTPRequest()

APHTTPRequest::APHTTPRequest ( QByteArray &  data)
inlineexplicit

Definition at line 214 of file mythairplayserver.cpp.

◆ ~APHTTPRequest()

APHTTPRequest::~APHTTPRequest ( )
default

Member Function Documentation

◆ GetMethod()

QByteArray& APHTTPRequest::GetMethod ( void  )
inline

Definition at line 221 of file mythairplayserver.cpp.

Referenced by MythAirplayServer::HandleResponse().

◆ GetURI()

QByteArray& APHTTPRequest::GetURI ( void  )
inline

Definition at line 222 of file mythairplayserver.cpp.

Referenced by MythAirplayServer::HandleResponse().

◆ GetBody()

QByteArray& APHTTPRequest::GetBody ( void  )
inline

Definition at line 223 of file mythairplayserver.cpp.

Referenced by MythAirplayServer::HandleResponse().

◆ GetHeaders()

QMap<QByteArray,QByteArray>& APHTTPRequest::GetHeaders ( void  )
inline

Definition at line 224 of file mythairplayserver.cpp.

Referenced by MythAirplayServer::HandleResponse().

◆ Append()

void APHTTPRequest::Append ( QByteArray &  data)
inline

Definition at line 227 of file mythairplayserver.cpp.

◆ GetQueryValue()

QByteArray APHTTPRequest::GetQueryValue ( const QByteArray &  key)
inline

Definition at line 233 of file mythairplayserver.cpp.

Referenced by MythAirplayServer::HandleResponse().

◆ GetHeadersFromBody()

QMap<QByteArray,QByteArray> APHTTPRequest::GetHeadersFromBody ( void  )
inline

Definition at line 241 of file mythairplayserver.cpp.

Referenced by MythAirplayServer::HandleResponse().

◆ IsComplete()

bool APHTTPRequest::IsComplete ( void  )
inline

Definition at line 257 of file mythairplayserver.cpp.

◆ GetLine()

QByteArray APHTTPRequest::GetLine ( void  )
inlineprivate

Definition at line 263 of file mythairplayserver.cpp.

Referenced by Process().

◆ Process()

void APHTTPRequest::Process ( void  )
inlineprivate

Definition at line 272 of file mythairplayserver.cpp.

Referenced by APHTTPRequest().

◆ Check()

void APHTTPRequest::Check ( void  )
inlineprivate

Definition at line 322 of file mythairplayserver.cpp.

Referenced by APHTTPRequest(), and Append().

Member Data Documentation

◆ m_readPos

int APHTTPRequest::m_readPos {0}
private

Definition at line 341 of file mythairplayserver.cpp.

Referenced by Check(), GetLine(), and Process().

◆ m_data

QByteArray APHTTPRequest::m_data
private

Definition at line 342 of file mythairplayserver.cpp.

Referenced by Check(), GetLine(), and Process().

◆ m_method

QByteArray APHTTPRequest::m_method
private

Definition at line 343 of file mythairplayserver.cpp.

Referenced by GetMethod(), and Process().

◆ m_uri

QByteArray APHTTPRequest::m_uri
private

Definition at line 344 of file mythairplayserver.cpp.

Referenced by GetURI(), and Process().

◆ m_queries

QList<QPair<QByteArray, QByteArray> > APHTTPRequest::m_queries
private

Definition at line 345 of file mythairplayserver.cpp.

Referenced by GetQueryValue(), and Process().

◆ m_headers

QMap<QByteArray,QByteArray> APHTTPRequest::m_headers
private

Definition at line 346 of file mythairplayserver.cpp.

Referenced by GetHeaders(), and Process().

◆ m_body

QByteArray APHTTPRequest::m_body
private

Definition at line 347 of file mythairplayserver.cpp.

Referenced by Append(), Check(), GetBody(), GetHeadersFromBody(), and Process().

◆ m_size

int APHTTPRequest::m_size {0}
private

Definition at line 348 of file mythairplayserver.cpp.

Referenced by Check(), and Process().

◆ m_incomingPartial

bool APHTTPRequest::m_incomingPartial {false}
private

Definition at line 349 of file mythairplayserver.cpp.

Referenced by Check(), and IsComplete().


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