MythTV  master
Static Public Member Functions | Static Protected Member Functions | List of all members
MythHTTPEncoding Class Reference

#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)
 

Detailed Description

Definition at line 7 of file mythhttpencoding.h.

Member Function Documentation

◆ GetMimeTypes()

QStringList MythHTTPEncoding::GetMimeTypes ( const QString &  Accept)
static

Definition at line 30 of file mythhttpencoding.cpp.

Referenced by MythHTTPService::HTTPRequest().

◆ GetContentType()

void MythHTTPEncoding::GetContentType ( MythHTTPRequest Request)
static

Parse the incoming Content-Type header for POST/PUT content.

Definition at line 74 of file mythhttpencoding.cpp.

Referenced by MythHTTPRequest::MythHTTPRequest().

◆ GetMimeType()

MythMimeType MythHTTPEncoding::GetMimeType ( HTTPVariant  Content)
static

Return a QMimeType that represents Content.

Definition at line 242 of file mythhttpencoding.cpp.

Referenced by MythHTTPResponse::AddContentHeaders().

◆ Compress()

MythHTTPEncode MythHTTPEncoding::Compress ( MythHTTPResponse Response,
int64_t &  Size 
)
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 287 of file mythhttpencoding.cpp.

Referenced by MythHTTPResponse::AddContentHeaders().

◆ GetURLEncodedParameters()

void MythHTTPEncoding::GetURLEncodedParameters ( MythHTTPRequest Request)
staticprotected

Definition at line 105 of file mythhttpencoding.cpp.

Referenced by GetContentType().

◆ GetXMLEncodedParameters()

void MythHTTPEncoding::GetXMLEncodedParameters ( MythHTTPRequest Request)
staticprotected

Definition at line 134 of file mythhttpencoding.cpp.

Referenced by GetContentType().

◆ GetJSONEncodedParameters()

void MythHTTPEncoding::GetJSONEncodedParameters ( MythHTTPRequest Request)
staticprotected

Definition at line 192 of file mythhttpencoding.cpp.

Referenced by GetContentType().


The documentation for this class was generated from the following files: