MythTV master
mythhttpparser.h
Go to the documentation of this file.
1#ifndef MYTHHTTPPARSER_H
2#define MYTHHTTPPARSER_H
3
4// MythTV
6
7class QTcpSocket;
8
10{
11 public:
12 MythHTTPParser() = default;
13 bool Read(QTcpSocket* Socket, bool& Ready);
14 HTTPRequest2 GetRequest(const MythHTTPConfig& Config, QTcpSocket* Socket);
15
16 private:
17 Q_DISABLE_COPY(MythHTTPParser)
18
19 bool m_started { false };
20 int m_linesRead { 0 };
21 bool m_headersComplete { false };
22 QString m_method;
23 HTTPHeaders m_headers { std::make_shared<HTTPMap>() };
24 int64_t m_contentLength { 0 };
25 HTTPData m_content { nullptr };
26};
27
28#endif
int64_t m_contentLength
MythHTTPParser()=default
bool Read(QTcpSocket *Socket, bool &Ready)
HTTPRequest2 GetRequest(const MythHTTPConfig &Config, QTcpSocket *Socket)
HTTPData m_content
HTTPHeaders m_headers
std::shared_ptr< MythHTTPRequest > HTTPRequest2
Definition: mythhttptypes.h:39
std::shared_ptr< HTTPMap > HTTPHeaders
Definition: mythhttptypes.h:36
std::shared_ptr< MythHTTPData > HTTPData
Definition: mythhttptypes.h:37
bool
Definition: pxsup2dast.c:31