1 #ifndef TORCHTTPREADER_H 2 #define TORCHTTPREADER_H 16 void TakeRequest (QByteArray& Content, QMap<QString,QString>& Headers);
18 bool Read (QTcpSocket *Socket);
27 bool m_requestStarted;
28 bool m_headersComplete;
30 quint64 m_contentLength;
31 quint64 m_contentReceived;
34 QMap<QString,QString> m_headers;
37 #endif // TORCHTTPREADER_H QString GetMethod(void) const
bool Read(QTcpSocket *Socket)
Read and parse data from the given socket.
Overlays the Websocket protocol over a QTcpSocket.
A convenience class to read HTTP requests from a QTcpSocket.
bool HeadersComplete(void) const
~TorcHTTPReader()=default
void TakeRequest(QByteArray &Content, QMap< QString, QString > &Headers)
Take ownership of the contents and headers. New owner is responsible for deleting.
void Reset(void)
Reset the read state.