The connection handler accepts incoming connections and dispatches incoming requests to to a request mapper. More...
#include <httpconnectionhandler.h>
Public Slots | |
void | handleConnection (int socketDescriptor) |
Received from from the listener, when the handler shall start processing a new connection. | |
Public Member Functions | |
HttpConnectionHandler (QSettings *settings, HttpRequestHandler *requestHandler) | |
Constructor. | |
virtual | ~HttpConnectionHandler () |
Destructor. | |
bool | isBusy () |
Returns true, if this handler is busy. | |
void | setBusy () |
Mark this handler as busy. | |
Public Attributes | |
bool | busy |
This shows the busy-state from a very early time. |
The connection handler accepts incoming connections and dispatches incoming requests to to a request mapper.
Since HTTP clients can send multiple requests before waiting for the response, the incoming requests are queued and processed one after the other.
Example for the required configuration settings:
readTimeout=60000 maxRequestSize=16000 maxMultiPartSize=1000000
The readTimeout value defines the maximum time to wait for a complete HTTP request.
Definition at line 32 of file httpconnectionhandler.h.
HttpConnectionHandler::HttpConnectionHandler | ( | QSettings * | settings, | |
HttpRequestHandler * | requestHandler | |||
) |
Constructor.
settings | Configuration settings of the HTTP webserver | |
requestHandler | handler that will process each incomin HTTP request |
Definition at line 11 of file httpconnectionhandler.cpp.
void HttpConnectionHandler::handleConnection | ( | int | socketDescriptor | ) | [slot] |
Received from from the listener, when the handler shall start processing a new connection.
socketDescriptor | references the accepted connection. |
Definition at line 52 of file httpconnectionhandler.cpp.