Torc  0.1
Classes | Macros | Enumerations
torchttprequest.h File Reference
#include <QMap>
#include <QPair>
#include <QString>
#include <QDateTime>
#include "torchttpreader.h"
Include dependency graph for torchttprequest.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TorcHTTPRequest
 A class to encapsulate an incoming HTTP request. More...
 

Macros

#define READ_CHUNK_SIZE   (1024 *64)
 

Enumerations

enum  HTTPType { HTTPRequest, HTTPResponse }
 
enum  HTTPRequestType {
  HTTPUnknownType = (0 << 0), HTTPHead = (1 << 0), HTTPGet = (1 << 1), HTTPPost = (1 << 2),
  HTTPPut = (1 << 3), HTTPDelete = (1 << 4), HTTPOptions = (1 << 5), HTTPDisabled = (1 << 6),
  HTTPAuth = (1 << 7)
}
 
enum  HTTPResponseType {
  HTTPResponseUnknown = 0, HTTPResponseNone, HTTPResponseDefault, HTTPResponseHTML,
  HTTPResponseXML, HTTPResponseJSON, HTTPResponseJSONJavascript, HTTPResponsePList,
  HTTPResponseBinaryPList, HTTPResponsePListApple, HTTPResponseBinaryPListApple, HTTPResponsePlainText,
  HTTPResponseM3U8, HTTPResponseM3U8Apple, HTTPResponseMPD, HTTPResponseMPEGTS,
  HTTPResponseMP4
}
 
enum  HTTPProtocol { HTTPUnknownProtocol = 0, HTTPZeroDotNine, HTTPOneDotZero, HTTPOneDotOne }
 
enum  HTTPStatus {
  HTTP_SwitchingProtocols = 101, HTTP_OK = 200, HTTP_PartialContent = 206, HTTP_MovedPermanently = 301,
  HTTP_NotModified = 304, HTTP_BadRequest = 400, HTTP_Unauthorized = 401, HTTP_Forbidden = 402,
  HTTP_NotFound = 404, HTTP_MethodNotAllowed = 405, HTTP_RequestedRangeNotSatisfiable = 416, HTTP_TooManyRequests = 429,
  HTTP_InternalServerError = 500, HTTP_NotImplemented = 501, HTTP_BadGateway = 502, HTTP_ServiceUnavailable = 503,
  HTTP_NetworkAuthenticationRequired = 511
}
 
enum  HTTPConnection { HTTPConnectionClose = 0, HTTPConnectionKeepAlive = 1, HTTPConnectionUpgrade = 2 }
 
enum  HTTPCacheing {
  HTTPCacheNone = (1 << 0), HTTPCacheShortLife = (1 << 1), HTTPCacheLongLife = (1 << 2), HTTPCacheLastModified = (1 << 3),
  HTTPCacheETag = (1 << 4)
}
 
enum  HTTPAuthorisation { HTTPNotAuthorised = 0, HTTPPreAuthorised = 1, HTTPAuthorised = 2, HTTPAuthorisedStale = 3 }
 

Macro Definition Documentation

#define READ_CHUNK_SIZE   (1024 *64)

Definition at line 110 of file torchttprequest.h.

Enumeration Type Documentation

Enumerator
HTTPNotAuthorised 
HTTPPreAuthorised 
HTTPAuthorised 
HTTPAuthorisedStale 

Definition at line 102 of file torchttprequest.h.

Enumerator
HTTPCacheNone 
HTTPCacheShortLife 
HTTPCacheLongLife 
HTTPCacheLastModified 
HTTPCacheETag 

Definition at line 93 of file torchttprequest.h.

Enumerator
HTTPConnectionClose 
HTTPConnectionKeepAlive 
HTTPConnectionUpgrade 

Definition at line 86 of file torchttprequest.h.

Enumerator
HTTPUnknownProtocol 
HTTPZeroDotNine 
HTTPOneDotZero 
HTTPOneDotOne 

Definition at line 57 of file torchttprequest.h.

Enumerator
HTTPUnknownType 
HTTPHead 
HTTPGet 
HTTPPost 
HTTPPut 
HTTPDelete 
HTTPOptions 
HTTPDisabled 
HTTPAuth 

Definition at line 23 of file torchttprequest.h.

Enumerator
HTTPResponseUnknown 
HTTPResponseNone 
HTTPResponseDefault 
HTTPResponseHTML 
HTTPResponseXML 
HTTPResponseJSON 
HTTPResponseJSONJavascript 
HTTPResponsePList 
HTTPResponseBinaryPList 
HTTPResponsePListApple 
HTTPResponseBinaryPListApple 
HTTPResponsePlainText 
HTTPResponseM3U8 
HTTPResponseM3U8Apple 
HTTPResponseMPD 
HTTPResponseMPEGTS 
HTTPResponseMP4 

Definition at line 36 of file torchttprequest.h.

enum HTTPStatus
Enumerator
HTTP_SwitchingProtocols 
HTTP_OK 
HTTP_PartialContent 
HTTP_MovedPermanently 
HTTP_NotModified 
HTTP_BadRequest 
HTTP_Unauthorized 
HTTP_Forbidden 
HTTP_NotFound 
HTTP_MethodNotAllowed 
HTTP_RequestedRangeNotSatisfiable 
HTTP_TooManyRequests 
HTTP_InternalServerError 
HTTP_NotImplemented 
HTTP_BadGateway 
HTTP_ServiceUnavailable 
HTTP_NetworkAuthenticationRequired 

Definition at line 65 of file torchttprequest.h.

enum HTTPType
Enumerator
HTTPRequest 
HTTPResponse 

Definition at line 17 of file torchttprequest.h.