QHttpEngine
1.0.0
Simple and secure HTTP server for Qt applications
|
Pre-handler request processor. More...
#include <qhttpengine/middleware.h>
Public Member Functions | |
Middleware (QObject *parent=Q_NULLPTR) | |
Base constructor for middleware. | |
virtual bool | process (Socket *socket)=0 |
Determine if request processing should continue. More... | |
Middleware sits between the server and the final request handler, determining whether the request should be passed on to the handler.
|
pure virtual |
This method is invoked when a new request comes in. If true is returned, processing continues. Otherwise, it is assumed that an appropriate error was written to the socket.
Implemented in QHttpEngine::LocalAuthMiddleware, and QHttpEngine::BasicAuthMiddleware.