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

#include <libmythbase/http/mythhttpparser.h>

Collaboration diagram for MythHTTPParser:
[legend]

Public Member Functions

 MythHTTPParser ()=default
 
bool Read (QTcpSocket *Socket, bool &Ready)
 
HTTPRequest2 GetRequest (const MythHTTPConfig &Config, QTcpSocket *Socket)
 

Private Attributes

bool m_started { false }
 
int m_linesRead { 0 }
 
bool m_headersComplete { false }
 
QString m_method
 
HTTPHeaders m_headers { std::make_shared<HTTPMap>() }
 
int64_t m_contentLength { 0 }
 
HTTPData m_content { nullptr }
 

Detailed Description

Definition at line 9 of file mythhttpparser.h.

Constructor & Destructor Documentation

◆ MythHTTPParser()

MythHTTPParser::MythHTTPParser ( )
default

Member Function Documentation

◆ Read()

bool MythHTTPParser::Read ( QTcpSocket *  Socket,
bool Ready 
)

Definition at line 42 of file mythhttpparser.cpp.

Referenced by MythHTTPSocket::Read().

◆ GetRequest()

HTTPRequest2 MythHTTPParser::GetRequest ( const MythHTTPConfig Config,
QTcpSocket *  Socket 
)

Definition at line 15 of file mythhttpparser.cpp.

Referenced by MythHTTPSocket::Read().

Member Data Documentation

◆ m_started

bool MythHTTPParser::m_started { false }
private

Definition at line 19 of file mythhttpparser.h.

Referenced by GetRequest(), and Read().

◆ m_linesRead

int MythHTTPParser::m_linesRead { 0 }
private

Definition at line 20 of file mythhttpparser.h.

Referenced by GetRequest(), and Read().

◆ m_headersComplete

bool MythHTTPParser::m_headersComplete { false }
private

Definition at line 21 of file mythhttpparser.h.

Referenced by GetRequest(), and Read().

◆ m_method

QString MythHTTPParser::m_method
private

Definition at line 22 of file mythhttpparser.h.

Referenced by GetRequest(), and Read().

◆ m_headers

HTTPHeaders MythHTTPParser::m_headers { std::make_shared<HTTPMap>() }
private

Definition at line 23 of file mythhttpparser.h.

Referenced by GetRequest(), and Read().

◆ m_contentLength

int64_t MythHTTPParser::m_contentLength { 0 }
private

Definition at line 24 of file mythhttpparser.h.

Referenced by GetRequest(), and Read().

◆ m_content

HTTPData MythHTTPParser::m_content { nullptr }
private

Definition at line 25 of file mythhttpparser.h.

Referenced by GetRequest(), and Read().


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