Go to the documentation of this file. 1 #ifndef MYTHHTTPENCODING_H
2 #define MYTHHTTPENCODING_H
Limited parsing of HTTP method and some headers to determine validity of request.
std::variant< std::monostate, HTTPData, HTTPFile > HTTPVariant
static void GetContentType(MythHTTPRequest *Request)
Parse the incoming Content-Type header for POST/PUT content.
static MythMimeType GetMimeType(HTTPVariant Content)
Return a QMimeType that represents Content.
static void GetURLEncodedParameters(MythHTTPRequest *Request)
static void GetJSONEncodedParameters(MythHTTPRequest *Request)
static void GetXMLEncodedParameters(MythHTTPRequest *Request)
static MythHTTPEncode Compress(MythHTTPResponse *Response, int64_t &Size)
Compress the response content under certain circumstances or mark the content as 'chunkable'.
static QStringList GetMimeTypes(const QString &Accept)