23#ifndef QHTTPENGINE_LOCALAUTHMIDDLEWARE_H
24#define QHTTPENGINE_LOCALAUTHMIDDLEWARE_H
28#include <qhttpengine/middleware.h>
30#include "qhttpengine_export.h"
35class QHTTPENGINE_EXPORT LocalAuthMiddlewarePrivate;
101 LocalAuthMiddlewarePrivate *
const d;
void setHeaderName(const QByteArray &name)
Set the name of the custom header used for confirming the token.
virtual bool process(Socket *socket)
Process the request.
LocalAuthMiddleware(QObject *parent=Q_NULLPTR)
Initialize local authentication.
bool exists() const
Determine whether the file exists.
void setData(const QVariantMap &data)
Set additional data to include with the token.
QString filename() const
Retrieve the name of the file used for storing the token.
Middleware(QObject *parent=Q_NULLPTR)
Base constructor for middleware.
Definition middleware.h:50
Implementation of the HTTP protocol.
Definition socket.h:97