7 #include <Cutelyst/cutelyst_export.h>
9 #include <QtCore/QDateTime>
10 #include <QtCore/QMetaType>
11 #include <QtCore/QVariant>
51 for (std::initializer_list<std::pair<QByteArray, QByteArray>>::const_iterator it =
65 [[nodiscard]]
QByteArray contentDisposition() const noexcept;
76 void setContentDisposition(const
QByteArray &contentDisposition);
83 void setContentDispositionAttachment(const
QByteArray &filename = {});
90 [[nodiscard]]
QByteArray contentEncoding() const noexcept;
96 void setContentEncoding(const
QByteArray &encoding);
111 void setContentType(const
QByteArray &contentType);
117 [[nodiscard]]
QByteArray contentTypeCharset() const;
123 void setContentTypeCharset(const
QByteArray &charset);
128 [[nodiscard]]
bool contentIsText() const;
134 [[nodiscard]]
bool contentIsHtml() const;
139 [[nodiscard]]
bool contentIsXHtml() const;
144 [[nodiscard]]
bool contentIsXml() const;
149 [[nodiscard]]
bool contentIsJson() const;
155 [[nodiscard]] qint64 contentLength() const;
161 void setContentLength(qint64 value);
178 [[nodiscard]]
QByteArray ifModifiedSince() const noexcept;
187 [[nodiscard]]
QDateTime ifModifiedSinceDateTime() const;
193 [[nodiscard]]
bool ifModifiedSince(const
QDateTime &lastModified) const;
204 [[nodiscard]]
bool ifMatch(const
QByteArray &etag) const;
214 [[nodiscard]]
bool ifNoneMatch(const
QByteArray &etag) const;
226 [[nodiscard]]
QByteArray lastModified() const noexcept;
231 void setLastModified(const
QByteArray &value);
243 [[nodiscard]]
QByteArray server() const noexcept;
255 [[nodiscard]]
QByteArray connection() const noexcept;
262 [[nodiscard]]
QByteArray host() const noexcept;
268 [[nodiscard]]
QByteArray userAgent() const noexcept;
274 [[nodiscard]]
QByteArray referer() const noexcept;
289 void setWwwAuthenticate(const
QByteArray &value);
294 void setProxyAuthenticate(const
QByteArray &value);
299 [[nodiscard]]
QByteArray authorization() const noexcept;
304 [[nodiscard]]
QByteArray authorizationBearer() const;
311 [[nodiscard]]
QByteArray authorizationBasic() const;
323 [[nodiscard]]
Authorization authorizationBasicObject()
const;
336 [[nodiscard]]
QByteArray proxyAuthorization() const noexcept;
343 [[nodiscard]]
QByteArray proxyAuthorizationBasic() const;
350 [[nodiscard]]
Authorization proxyAuthorizationBasicObject() const;
367 const
QByteArray &defaultValue) const noexcept;
414 inline
void clear() { m_data.
clear(); }
438 m_data = other.m_data;
445 bool operator==(
const Headers &other)
const noexcept;
The Cutelyst namespace holds all public Cutelyst API.
int compare(QByteArrayView bv, Qt::CaseSensitivity cs) const const