23 #ifndef TUFAO_HTTPSERVERRESPONSE_H
24 #define TUFAO_HTTPSERVERRESPONSE_H
26 #include <QtCore/QObject>
27 #include "tufao_global.h"
74 SWITCHING_PROTOCOLS = 101,
81 NON_AUTHORITATIVE_INFORMATION = 203,
84 PARTIAL_CONTENT = 206,
86 ALREADY_REPORTED = 208,
89 MULTIPLE_CHOICES = 300,
90 MOVED_PERMANENTLY = 301,
96 TEMPORARY_REDIRECT = 307,
97 RESUME_INCOMPLETE = 308,
101 PAYMENT_REQUIRED = 402,
104 METHOD_NOT_ALLOWED = 405,
105 NOT_ACCEPTABLE = 406,
106 PROXY_AUTHENTICATION_REQUIRED = 407,
107 REQUEST_TIMEOUT = 408,
110 LENGTH_REQUIRED = 411,
111 PRECONDITION_FAILED = 412,
112 REQUEST_ENTITY_TOO_LARGE = 413,
113 REQUEST_URI_TOO_LONG = 414,
114 UNSUPPORTED_MEDIA_TYPE = 415,
115 REQUESTED_RANGE_NOT_SATISFIABLE = 416,
116 EXPECTATION_FAILED = 417,
118 UNPROCESSABLE_ENTITY = 422,
120 FAILED_DEPENDENCY = 424,
121 UNORDERED_COLLECTION = 425,
122 UPGRADE_REQUIRED = 426,
123 PRECONDITION_REQUIRED = 428,
124 TOO_MANY_REQUESTS = 429,
125 REQUEST_HEADER_FIELDS_TOO_LARGE = 431,
128 CLIENT_CLOSED_REQUEST = 499,
130 INTERNAL_SERVER_ERROR = 500,
131 NOT_IMPLEMENTED = 501,
133 SERVICE_UNAVAILABLE = 503,
134 GATEWAY_TIMEOUT = 504,
135 HTTP_VERSION_NOT_SUPPORTED = 505,
136 VARIANT_ALSO_NEGOTIATES = 506,
137 INSUFFICIENT_STORAGE = 507,
139 BANDWIDTH_LIMIT_EXCEEDED = 509,
164 Q_DECLARE_FLAGS(Options, Option)
178 QObject *parent = 0);
188 Options options() const;
196 const
Headers &headers() const;
263 bool writeContinue();
275 bool writeHead(
int statusCode, const QByteArray &reasonPhrase,
284 bool writeHead(
int statusCode, const QByteArray &reasonPhrase);
292 bool writeHead(
int statusCode, const
Headers &headers);
300 bool writeHead(
int statusCode);
324 bool write(const QByteArray &chunk);
351 bool addTrailers(const
Headers &headers);
378 bool addTrailer(const QByteArray &headerName,
379 const QByteArray &headerValue);
390 bool end(const QByteArray &chunk = QByteArray());
406 #endif // TUFAO_HTTPSERVERRESPONSE_H
The Tufao::HttpServerResponse is used to respond to a Tufao::HttpServerRequest.
Definition: httpserverresponse.h:57
Option
This enum represents some aspects of a HTTP response.
Definition: httpserverresponse.h:146
StatusCode
The values in this enum represents a HTTP status code.
Definition: httpserverresponse.h:70