MythTV
master
|
Limited parsing of HTTP method and some headers to determine validity of request. More...
#include <libmythbase/http/mythhttprequest.h>
Public Member Functions | |
MythHTTPRequest (const MythHTTPConfig &Config, QString Method, HTTPHeaders Headers, HTTPData Content, QTcpSocket *Socket=nullptr) | |
Public Attributes | |
QString | m_serverName |
QString | m_method |
HTTPHeaders | m_headers { nullptr } |
HTTPData | m_content { nullptr } |
MythHTTPStatus | m_status { HTTPBadRequest } |
QUrl | m_url |
QString | m_root |
QString | m_path |
QString | m_fileName |
HTTPQueries | m_queries |
MythHTTPVersion | m_version { HTTPUnknownVersion } |
MythHTTPRequestType | m_type { HTTPUnknown } |
MythHTTPConnection | m_connection { HTTPConnectionClose } |
std::chrono::milliseconds | m_timeout { HTTP_SOCKET_TIMEOUT_MS } |
int | m_allowed { HTTP_DEFAULT_ALLOWED } |
Static Private Member Functions | |
static HTTPQueries | ParseQuery (const QString &Query) |
Limited parsing of HTTP method and some headers to determine validity of request.
The aim here is to parse the minimum amount of data to determine whether the request should be processed and, if not, set enough state to send the appropriate error response.
Definition at line 12 of file mythhttprequest.h.
MythHTTPRequest::MythHTTPRequest | ( | const MythHTTPConfig & | Config, |
QString | Method, | ||
HTTPHeaders | Headers, | ||
HTTPData | Content, | ||
QTcpSocket * | Socket = nullptr |
||
) |
Definition at line 24 of file mythhttprequest.cpp.
|
staticprivate |
Definition at line 148 of file mythhttprequest.cpp.
Referenced by MythHTTPRequest().
QString MythHTTPRequest::m_serverName |
Definition at line 18 of file mythhttprequest.h.
QString MythHTTPRequest::m_method |
Definition at line 19 of file mythhttprequest.h.
Referenced by MythHTTPRequest().
HTTPHeaders MythHTTPRequest::m_headers { nullptr } |
Definition at line 20 of file mythhttprequest.h.
Referenced by MythHTTPRequest().
HTTPData MythHTTPRequest::m_content { nullptr } |
Definition at line 21 of file mythhttprequest.h.
Referenced by MythHTTPRequest().
MythHTTPStatus MythHTTPRequest::m_status { HTTPBadRequest } |
Definition at line 23 of file mythhttprequest.h.
Referenced by MythHTTPRequest().
QUrl MythHTTPRequest::m_url |
Definition at line 24 of file mythhttprequest.h.
Referenced by MythHTTPRequest().
QString MythHTTPRequest::m_root |
Definition at line 25 of file mythhttprequest.h.
QString MythHTTPRequest::m_path |
Definition at line 26 of file mythhttprequest.h.
Referenced by MythHTTPRequest().
QString MythHTTPRequest::m_fileName |
Definition at line 27 of file mythhttprequest.h.
Referenced by MythHTTPRequest().
HTTPQueries MythHTTPRequest::m_queries |
Definition at line 28 of file mythhttprequest.h.
Referenced by MythHTTPRequest().
MythHTTPVersion MythHTTPRequest::m_version { HTTPUnknownVersion } |
Definition at line 29 of file mythhttprequest.h.
Referenced by MythHTTPRequest().
MythHTTPRequestType MythHTTPRequest::m_type { HTTPUnknown } |
Definition at line 30 of file mythhttprequest.h.
Referenced by MythHTTPRequest().
MythHTTPConnection MythHTTPRequest::m_connection { HTTPConnectionClose } |
Definition at line 31 of file mythhttprequest.h.
Referenced by MythHTTPRequest().
std::chrono::milliseconds MythHTTPRequest::m_timeout { HTTP_SOCKET_TIMEOUT_MS } |
Definition at line 32 of file mythhttprequest.h.
int MythHTTPRequest::m_allowed { HTTP_DEFAULT_ALLOWED } |
Definition at line 33 of file mythhttprequest.h.