1#ifndef QHTTPREQUEST_COMPAT_H
2#define QHTTPREQUEST_COMPAT_H
14#include <QLatin1String>
15#include "deconz/declspec.h"
25 HttpStatusBadRequest = 400,
26 HttpStatusMethodNotAllowed = 405,
27 HttpStatusPayloadTooLarge = 413,
28 HttpStatusUriTooLong = 414,
29 HttpStatusRequestHeaderFieldsTooLarge = 431
45class DECONZ_DLLSPEC QHttpRequestHeader
49 QHttpRequestHeader(
const QHttpRequestHeader &other);
54 QHttpRequestHeader(
const char *buf,
size_t size);
55 QHttpRequestHeader(
const QString &method,
const QString &path);
56 QHttpRequestHeader& operator=(
const QHttpRequestHeader &other);
57 ~QHttpRequestHeader();
58 bool hasKey(
const QLatin1String &key)
const;
59 size_t contentLength()
const;
60 QLatin1String path()
const;
61 QLatin1String pathAt(
size_t i)
const;
62 size_t pathComponentsCount()
const;
63 QLatin1String method()
const;
64 HttpMethod httpMethod()
const;
65 QLatin1String value(
const QLatin1String &key)
const;
66 QLatin1String url()
const;
71 bool update(
const char *buf,
size_t size);
73 Http::HttpStatus parseStatus()
const;