23#ifndef QHTTPENGINE_HANDLER_H
24#define QHTTPENGINE_HANDLER_H
28#include "qhttpengine_export.h"
38class QHTTPENGINE_EXPORT HandlerPrivate;
77class QHTTPENGINE_EXPORT
Handler :
public QObject
134 HandlerPrivate *
const d;
135 friend class HandlerPrivate;
Handler(QObject *parent=0)
Base constructor for a handler.
void addRedirect(const QRegExp &pattern, const QString &path)
Add a redirect for a specific pattern.
void addSubHandler(const QRegExp &pattern, Handler *handler)
Add a handler for a specific pattern.
virtual void process(Socket *socket, const QString &path)
Process a request.
void route(Socket *socket, const QString &path)
Route an incoming request.
void addMiddleware(Middleware *middleware)
Add middleware to the handler.
Pre-handler request processor.
Definition middleware.h:42
Implementation of the HTTP protocol.
Definition socket.h:97