32#ifdef _QX_ENABLE_QT_NETWORK
33#ifndef _QX_HTTP_COOKIE_H_
34#define _QX_HTTP_COOKIE_H_
65 QxHttpCookie(
const QByteArray & name_,
const QByteArray & value_,
const QByteArray & domain_ = QByteArray(),
const QByteArray & path_ = QByteArray(
"/"), qlonglong maxAge_ = 0,
bool secure_ =
false,
bool httpOnly_ =
false);
69 static QHash<QByteArray, QxHttpCookie>
parse(
const QByteArray & cookies);
Root namespace for all QxOrm library features.
qx::QxHttpCookie : HTTP cookie (https://www.qxorm.com/qxorm_en/manual.html#manual_999)
QByteArray path
Cookie path : indicates a URL path that must exist in the requested resource before sending the Cooki...
bool httpOnly
Cookie http-only : HTTP-only cookies aren't accessible via JavaScript through the Document....
QByteArray toString() const
bool secure
Cookie secure : a secure cookie will only be sent to the server when a request is made using SSL and ...
QByteArray value
Cookie value.
qlonglong maxAge
Cookie max-age : number of seconds until the cookie expires (a zero or negative number will expire th...
QByteArray domain
Cookie domain : specifies those hosts to which the cookie will be sent, if not specified defaults to ...
QxHttpCookie(const QByteArray &name_, const QByteArray &value_, const QByteArray &domain_=QByteArray(), const QByteArray &path_=QByteArray("/"), qlonglong maxAge_=0, bool secure_=false, bool httpOnly_=false)
static QHash< QByteArray, QxHttpCookie > parse(const QByteArray &cookies)
QByteArray name
Cookie name.