MythTV  master
Classes | Macros | Typedefs | Enumerations
mythhttpcommon.h File Reference
#include <cstddef>
#include <cstdint>
#include <memory>
#include <QString>
#include <QMetaType>
#include "libmythbase/mythbaseexp.h"
Include dependency graph for mythhttpcommon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MythSharedData
 
class  MythSharedString
 
class  MythHTTPWS
 

Macros

#define HTTP_CHUNKSIZE   INT64_C(65536)
 A group of functions shared between HTTP and WebSocket code. More...
 
#define JSONRPC   QStringLiteral("jsonrpc")
 
#define XMLRPC   QStringLiteral("xmlrpc")
 
#define PLISTRPC   QStringLiteral("plistrpc")
 
#define CBORRPC   QStringLiteral("cborrpc")
 

Typedefs

using DataPayload = std::shared_ptr< MythSharedData >
 
using DataPayloads = std::vector< DataPayload >
 
using StringPayload = std::shared_ptr< MythSharedString >
 

Enumerations

enum  MythSocketProtocol : std::uint8_t {
  ProtHTTP = 0, ProtFrame, ProtJSONRPC, ProtXMLRPC,
  ProtPLISTRPC, ProtCBORRPC
}
 

Macro Definition Documentation

◆ HTTP_CHUNKSIZE

#define HTTP_CHUNKSIZE   INT64_C(65536)

A group of functions shared between HTTP and WebSocket code.

Definition at line 18 of file mythhttpcommon.h.

◆ JSONRPC

#define JSONRPC   QStringLiteral("jsonrpc")

Definition at line 20 of file mythhttpcommon.h.

◆ XMLRPC

#define XMLRPC   QStringLiteral("xmlrpc")

Definition at line 21 of file mythhttpcommon.h.

◆ PLISTRPC

#define PLISTRPC   QStringLiteral("plistrpc")

Definition at line 22 of file mythhttpcommon.h.

◆ CBORRPC

#define CBORRPC   QStringLiteral("cborrpc")

Definition at line 23 of file mythhttpcommon.h.

Typedef Documentation

◆ DataPayload

using DataPayload = std::shared_ptr<MythSharedData>

Definition at line 36 of file mythhttpcommon.h.

◆ DataPayloads

using DataPayloads = std::vector<DataPayload>

Definition at line 37 of file mythhttpcommon.h.

◆ StringPayload

using StringPayload = std::shared_ptr<MythSharedString>

Definition at line 56 of file mythhttpcommon.h.

Enumeration Type Documentation

◆ MythSocketProtocol

enum MythSocketProtocol : std::uint8_t
Enumerator
ProtHTTP 
ProtFrame 
ProtJSONRPC 
ProtXMLRPC 
ProtPLISTRPC 
ProtCBORRPC 

Definition at line 25 of file mythhttpcommon.h.