MythTV
master
|
#include <mythhttpencoding.h>
Static Public Member Functions | |
static QStringList | GetMimeTypes (const QString &Accept) |
static void | GetContentType (MythHTTPRequest *Request) |
Parse the incoming Content-Type header for POST/PUT content. More... | |
static MythMimeType | GetMimeType (HTTPVariant Content) |
Return a QMimeType that represents Content. More... | |
static MythHTTPEncode | Compress (MythHTTPResponse *Response, int64_t &Size) |
Compress the response content under certain circumstances or mark the content as 'chunkable'. More... | |
Static Protected Member Functions | |
static void | GetURLEncodedParameters (MythHTTPRequest *Request) |
static void | GetXMLEncodedParameters (MythHTTPRequest *Request) |
static void | GetJSONEncodedParameters (MythHTTPRequest *Request) |
Definition at line 7 of file mythhttpencoding.h.
|
static |
Definition at line 30 of file mythhttpencoding.cpp.
Referenced by MythHTTPService::HTTPRequest().
|
static |
Parse the incoming Content-Type header for POST/PUT content.
Definition at line 78 of file mythhttpencoding.cpp.
Referenced by MythHTTPRequest::MythHTTPRequest().
|
static |
Return a QMimeType that represents Content.
Definition at line 255 of file mythhttpencoding.cpp.
Referenced by MythHTTPResponse::AddContentHeaders().
|
static |
Compress the response content under certain circumstances or mark the content as 'chunkable'.
This only supports gzip compression. deflate is simple enough to add using qCompress but Qt adds a header and a footer to the result, which must be removed. deflate does save a handful of bytes but we don't really need to support both.
Definition at line 300 of file mythhttpencoding.cpp.
Referenced by MythHTTPResponse::AddContentHeaders().
|
staticprotected |
Definition at line 114 of file mythhttpencoding.cpp.
Referenced by GetContentType().
|
staticprotected |
Definition at line 147 of file mythhttpencoding.cpp.
Referenced by GetContentType().
|
staticprotected |
Definition at line 205 of file mythhttpencoding.cpp.
Referenced by GetContentType().