8 #ifndef _HttpSessionStore_H_ 9 #define _HttpSessionStore_H_ 75 bool contains(
const QByteArray&
id)
const {
return m_sessions.contains(
id); }
QByteArray sessionId(HttpRequest *request, HttpResponse *response)
Returns session ID associated with the request or response.
HttpSessionStore(const HttpSettings *settings, QObject *parent)
Constructor.
Information about one session.
QString m_sessionCookieName
The name of the session cookie.
General single-threaded, event-driven HTTP server.
void aboutToRemove(const HttpSession &session) const
Signal is emited when a session is about to remove from storage.
HttpSession session(HttpRequest *request, HttpResponse *response)
Returns session associated with the request or response.
QHash< QByteArray, HttpSession > m_sessions
List of stored sessions.
Response to HTTP request - headers, cookies and body.
QTimer * m_cleaner
Timer for store cleaning from old sessions.
Configuration of the http server instance.
const HttpSettings * m_settings
Pointer to http server settings.
void setSessionCookieName(const QString &x)
Sets the name of the session cookie.
Processes HTTP request, parses headers, body and files sent by HTTP protocol.
void slotCleaner()
Slot cleans the store from old sessions.
Namespace of HTTP server.
const QString & sessionCookieName() const
Returns the session cookie name.