QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches

qx::QxHttpCookie : HTTP cookie (https://www.qxorm.com/qxorm_en/manual.html#manual_999) More...

#include <QxHttpCookie.h>

Public Member Functions

 QxHttpCookie ()
 
 QxHttpCookie (const QByteArray &name_, const QByteArray &value_, const QByteArray &domain_=QByteArray(), const QByteArray &path_=QByteArray("/"), qlonglong maxAge_=0, bool secure_=false, bool httpOnly_=false)
 
 ~QxHttpCookie ()
 
QByteArray toString () const
 

Static Public Member Functions

static QHash< QByteArray, QxHttpCookieparse (const QByteArray &cookies)
 

Public Attributes

QByteArray name
 Cookie name.
 
QByteArray value
 Cookie value.
 
QByteArray domain
 Cookie domain : specifies those hosts to which the cookie will be sent, if not specified defaults to the host portion of the current document location (but not including subdomains)
 
QByteArray path
 Cookie path : indicates a URL path that must exist in the requested resource before sending the Cookie header.
 
qlonglong maxAge
 Cookie max-age : number of seconds until the cookie expires (a zero or negative number will expire the cookie immediately)
 
bool secure
 Cookie secure : a secure cookie will only be sent to the server when a request is made using SSL and the HTTPS protocol.
 
bool httpOnly
 Cookie http-only : HTTP-only cookies aren't accessible via JavaScript through the Document.cookie property, the XMLHttpRequest and Request APIs to mitigate attacks against cross-site scripting.
 

Detailed Description

Constructor & Destructor Documentation

◆ QxHttpCookie() [1/2]

qx::QxHttpCookie::QxHttpCookie ( )

◆ QxHttpCookie() [2/2]

qx::QxHttpCookie::QxHttpCookie ( const QByteArray & name_,
const QByteArray & value_,
const QByteArray & domain_ = QByteArray(),
const QByteArray & path_ = QByteArray("/"),
qlonglong maxAge_ = 0,
bool secure_ = false,
bool httpOnly_ = false )

◆ ~QxHttpCookie()

qx::QxHttpCookie::~QxHttpCookie ( )

Member Function Documentation

◆ parse()

static QHash< QByteArray, QxHttpCookie > qx::QxHttpCookie::parse ( const QByteArray & cookies)
static

◆ toString()

QByteArray qx::QxHttpCookie::toString ( ) const

Member Data Documentation

◆ domain

QByteArray qx::QxHttpCookie::domain

Cookie domain : specifies those hosts to which the cookie will be sent, if not specified defaults to the host portion of the current document location (but not including subdomains)

Definition at line 58 of file QxHttpCookie.h.

◆ httpOnly

bool qx::QxHttpCookie::httpOnly

Cookie http-only : HTTP-only cookies aren't accessible via JavaScript through the Document.cookie property, the XMLHttpRequest and Request APIs to mitigate attacks against cross-site scripting.

Definition at line 62 of file QxHttpCookie.h.

◆ maxAge

qlonglong qx::QxHttpCookie::maxAge

Cookie max-age : number of seconds until the cookie expires (a zero or negative number will expire the cookie immediately)

Definition at line 60 of file QxHttpCookie.h.

◆ name

QByteArray qx::QxHttpCookie::name

Cookie name.

Definition at line 56 of file QxHttpCookie.h.

◆ path

QByteArray qx::QxHttpCookie::path

Cookie path : indicates a URL path that must exist in the requested resource before sending the Cookie header.

Definition at line 59 of file QxHttpCookie.h.

◆ secure

bool qx::QxHttpCookie::secure

Cookie secure : a secure cookie will only be sent to the server when a request is made using SSL and the HTTPS protocol.

Definition at line 61 of file QxHttpCookie.h.

◆ value

QByteArray qx::QxHttpCookie::value

Cookie value.

Definition at line 57 of file QxHttpCookie.h.


The documentation for this struct was generated from the following file: