QHttpEngine
1.0.0
Simple and secure HTTP server for Qt applications
|
Handler that routes HTTP requests to an upstream server
#include <qhttpengine/proxyhandler.h>
Public Member Functions | |
ProxyHandler (const QHostAddress &address, quint16 port, QObject *parent=0) | |
Create a new proxy handler. | |
![]() | |
Handler (QObject *parent=0) | |
Base constructor for a handler. | |
void | addMiddleware (Middleware *middleware) |
Add middleware to the handler. | |
void | addRedirect (const QRegExp &pattern, const QString &path) |
Add a redirect for a specific pattern. More... | |
void | addSubHandler (const QRegExp &pattern, Handler *handler) |
Add a handler for a specific pattern. More... | |
void | route (Socket *socket, const QString &path) |
Route an incoming request. | |
Protected Member Functions | |
virtual void | process (Socket *socket, const QString &path) |
Reimplementation of [Handler::process()](QHttpEngine::Handler::process) | |