6#ifndef CUTELYST_COOKIE_H
7#define CUTELYST_COOKIE_H
9#include <Cutelyst/cutelyst_global.h>
11#include <QNetworkCookie>
28class CUTELYST_LIBRARY
Cookie :
public QNetworkCookie
50 explicit Cookie(
const QByteArray &name = QByteArray(),
const QByteArray &value = QByteArray());
77 QNetworkCookie::swap(other);
87 bool operator==(
const Cookie &other)
const;
97 SameSite sameSitePolicy()
const;
101 void setSameSitePolicy(SameSite sameSite);
108 QByteArray toRawForm(RawForm form = Full)
const;
111 QSharedDataPointer<CookiePrivate> d;
118#ifndef QT_NO_DEBUG_STREAM
~Cookie()
Destroys this Cookie object.
void swap(Cookie &other) noexcept
Swaps this cookie with other.
Cookie & operator=(Cookie &&other) noexcept
Move assigns the contents of the Cookie object other to this object.
bool operator!=(const Cookie &other) const
Returns true if this cookie is not equal to other.
The Cutelyst namespace holds all public Cutelyst API.