The Response class is responsable to response a Http request.
More...
#include <response.h>
|
|
| Response (QTcpSocket &socket, const Configuration &configuration) |
| |
|
void | write (const QJsonObject &json, bool writeContentType=true) |
| |
|
void | write (const QJsonArray &array, bool writeContentType=true) |
| |
|
void | write (QByteArray &&data) |
| |
|
void | write (const QByteArray &data, bool flush=true) |
| |
|
void | sendError (int sc, const QByteArray &msg) |
| |
|
void | flushBuffer () |
| |
|
int | getBufferSize () const noexcept |
| |
|
void | addHeader (const QByteArray &name, const QByteArray &value) noexcept |
| |
|
void | addCookie (const QNetworkCookie &cookie) noexcept |
| |
|
void | setStatus (int statusCode, const QByteArray &description) |
| |
|
void | sendRedirect (const QByteArray &url) |
| |
|
|
static const int | SC_CONTINUE = 100 |
| |
|
static const int | SC_SWITCHING_PROTOCOLS = 101 |
| |
|
static const int | SC_OK = 200 |
| |
|
static const int | SC_CREATED = 201 |
| |
|
static const int | SC_ACCEPTED = 202 |
| |
|
static const int | SC_NON_AUTHORITATIVE_INFORMATION = 203 |
| |
|
static const int | SC_NO_CONTENT = 204 |
| |
|
static const int | SC_RESET_CONTENT = 205 |
| |
|
static const int | SC_PARTIAL_CONTENT = 206 |
| |
|
static const int | SC_MULTIPLE_CHOICES = 300 |
| |
|
static const int | SC_MOVED_PERMANENTLY = 301 |
| |
|
static const int | SC_MOVED_TEMPORARILY = 302 |
| |
|
static const int | SC_FOUND = 302 |
| |
|
static const int | SC_SEE_OTHER = 303 |
| |
|
static const int | SC_NOT_MODIFIED = 304 |
| |
|
static const int | SC_USE_PROXY = 305 |
| |
|
static const int | SC_TEMPORARY_REDIRECT = 307 |
| |
|
static const int | SC_BAD_REQUEST = 400 |
| |
|
static const int | SC_UNAUTHORIZED = 401 |
| |
|
static const int | SC_PAYMENT_REQUIRED = 402 |
| |
|
static const int | SC_FORBIDDEN = 403 |
| |
|
static const int | SC_NOT_FOUND = 404 |
| |
|
static const int | SC_METHOD_NOT_ALLOWED = 405 |
| |
|
static const int | SC_NOT_ACCEPTABLE = 406 |
| |
|
static const int | SC_PROXY_AUTHENTICATION_REQUIRED = 407 |
| |
|
static const int | SC_REQUEST_TIMEOUT = 408 |
| |
|
static const int | SC_CONFLICT = 409 |
| |
|
static const int | SC_GONE = 410 |
| |
|
static const int | SC_LENGTH_REQUIRED = 411 |
| |
|
static const int | SC_PRECONDITION_FAILED = 412 |
| |
|
static const int | SC_REQUEST_ENTITY_TOO_LARGE = 413 |
| |
|
static const int | SC_REQUEST_URI_TOO_LONG = 414 |
| |
|
static const int | SC_UNSUPPORTED_MEDIA_TYPE = 415 |
| |
|
static const int | SC_REQUESTED_RANGE_NOT_SATISFIABLE = 416 |
| |
|
static const int | SC_EXPECTATION_FAILED = 417 |
| |
|
static const int | SC_INTERNAL_SERVER_ERROR = 500 |
| |
|
static const int | SC_NOT_IMPLEMENTED = 501 |
| |
|
static const int | SC_BAD_GATEWAY = 502 |
| |
|
static const int | SC_SERVICE_UNAVAILABLE = 503 |
| |
|
static const int | SC_GATEWAY_TIMEOUT = 504 |
| |
|
static const int | SC_HTTP_VERSION_NOT_SUPPORTED = 505 |
| |
The Response class is responsable to response a Http request.
The documentation for this class was generated from the following files:
- /home/herik/CPPWebFramework/CPPWebFramework/cwf/response.h
- /home/herik/CPPWebFramework/CPPWebFramework/cwf/response.cpp