QHttpEngine  1.0.0
Simple and secure HTTP server for Qt applications
Public Member Functions | List of all members
QHttpEngine::Middleware Class Referenceabstract

Pre-handler request processor. More...

#include <qhttpengine/middleware.h>

Inheritance diagram for QHttpEngine::Middleware:
QHttpEngine::BasicAuthMiddleware QHttpEngine::LocalAuthMiddleware

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...
 

Detailed Description

Middleware sits between the server and the final request handler, determining whether the request should be passed on to the handler.

Member Function Documentation

§ process()

virtual bool QHttpEngine::Middleware::process ( Socket socket)
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.


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