25 const QString& comment,
26 const QString& domain,
45 if (!m_comment.isEmpty()) {
46 buffer +=
"; Comment=";
50 if (!m_domain.isEmpty()) {
51 buffer +=
"; Domain=";
56 buffer +=
"; Max-Age=";
57 buffer += QString(
"%1").arg(m_maxAge);
60 if (!m_path.isEmpty()) {
69 buffer +=
"; Version=";
70 buffer += QString(
"%1").arg(m_version);
72 return buffer.toUtf8();
QString path() const
Returns the path of cookie.
bool secure() const
Returns the secure status of cookie.
QString name() const
Returns the name of cookie.
QByteArray toByteArray() const
Returns cookie on form of line formated for HTTP header.
int maxAge() const
Returns the max age of cookie.
QString comment() const
Returns the comment of cookie.
QString value() const
Returns the value of cookie.
HttpCookie()
Constructor, creates an empty cookie.
Namespace of HTTP server.
QString domain() const
Returns the domain of cookie.