MythTV  master
Classes | Enumerations | Variables
httprequest.h File Reference
#include <utility>
#include <QBuffer>
#include <QDateTime>
#include <QFile>
#include <QRegularExpression>
#include <QTcpSocket>
#include <QTextStream>
#include "libmythbase/mythsession.h"
#include "upnpexp.h"
#include "upnputil.h"
#include "serializers/serializer.h"
Include dependency graph for httprequest.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MIMETypes
 
class  IPostProcess
 
class  HTTPRequest
 
class  BufferedSocketDeviceRequest
 
class  HttpException
 
class  HttpRedirectException
 

Enumerations

enum  HttpRequestType : std::uint16_t {
  RequestTypeUnknown = 0x0000, RequestTypeGet = 0x0001, RequestTypeHead = 0x0002, RequestTypePost = 0x0004,
  RequestTypeOptions = 0x0040, RequestTypeMSearch = 0x0100, RequestTypeSubscribe = 0x0200, RequestTypeUnsubscribe = 0x0400,
  RequestTypeNotify = 0x0800, RequestTypeResponse = 0x1000
}
 
enum  HttpContentType : std::uint8_t { ContentType_Unknown = 0, ContentType_Urlencoded = 1, ContentType_XML = 2, ContentType_JSON = 3 }
 
enum  HttpResponseType : std::int8_t {
  ResponseTypeNone = -1, ResponseTypeUnknown = 0, ResponseTypeXML = 1, ResponseTypeHTML = 2,
  ResponseTypeJS = 3, ResponseTypeCSS = 4, ResponseTypeText = 5, ResponseTypeSVG = 6,
  ResponseTypeFile = 7, ResponseTypeOther = 8, ResponseTypeHeader = 9
}
 

Variables

static constexpr const char * SOAP_ENVELOPE_BEGIN
 
static constexpr const char * SOAP_ENVELOPE_END { "</s:Body>\r\n</s:Envelope>" }
 

Enumeration Type Documentation

◆ HttpRequestType

Enumerator
RequestTypeUnknown 
RequestTypeGet 
RequestTypeHead 
RequestTypePost 
RequestTypeOptions 
RequestTypeMSearch 
RequestTypeSubscribe 
RequestTypeUnsubscribe 
RequestTypeNotify 
RequestTypeResponse 

Definition at line 44 of file httprequest.h.

◆ HttpContentType

enum HttpContentType : std::uint8_t
Enumerator
ContentType_Unknown 
ContentType_Urlencoded 
ContentType_XML 
ContentType_JSON 

Definition at line 66 of file httprequest.h.

◆ HttpResponseType

enum HttpResponseType : std::int8_t
Enumerator
ResponseTypeNone 
ResponseTypeUnknown 
ResponseTypeXML 
ResponseTypeHTML 
ResponseTypeJS 
ResponseTypeCSS 
ResponseTypeText 
ResponseTypeSVG 
ResponseTypeFile 
ResponseTypeOther 
ResponseTypeHeader 

Definition at line 74 of file httprequest.h.

Variable Documentation

◆ SOAP_ENVELOPE_BEGIN

constexpr const char* SOAP_ENVELOPE_BEGIN
staticconstexpr
Initial value:
{ "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" "
"s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">"
"<s:Body>" }

Definition at line 34 of file httprequest.h.

Referenced by HTTPRequest::FormatActionResponse(), and HTTPRequest::FormatErrorResponse().

◆ SOAP_ENVELOPE_END

constexpr const char* SOAP_ENVELOPE_END { "</s:Body>\r\n</s:Envelope>" }
staticconstexpr