MythTV  master
Macros | Typedefs
mythhttpencoding.cpp File Reference
#include "mythlogging.h"
#include "unziputil.h"
#include "http/mythmimedatabase.h"
#include "http/mythhttpdata.h"
#include "http/mythhttpfile.h"
#include "http/mythhttpresponse.h"
#include "http/mythhttpencoding.h"
#include <QDomDocument>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
Include dependency graph for mythhttpencoding.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("HTTPEnc: ")
 

Typedefs

using MimePair = std::pair< float, QString >
 Parse the incoming HTTP 'Accept' header and return an ordered list of preferences. More...
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("HTTPEnc: ")

Definition at line 16 of file mythhttpencoding.cpp.

Typedef Documentation

◆ MimePair

using MimePair = std::pair<float,QString>

Parse the incoming HTTP 'Accept' header and return an ordered list of preferences.

We retain the original MIME types rather than converting to a MythMimeType as this potentially converts an alias type to its parent (i.e. QMimeDatabase will always return application/xml for xml types).

Note
This will not remove wildcard mime specifiers but they will likely be ignored elsewhere.

Definition at line 29 of file mythhttpencoding.cpp.