Stellarium 0.15.2
|
The connection handler accepts incoming connections and dispatches incoming requests to to a request mapper. More...
#include <httpconnectionhandler.h>
Public Slots | |
void | handleConnection (tSocketDescriptor socketDescriptor) |
Received from from the listener, when the handler shall start processing a new connection. More... | |
Public Member Functions | |
HttpConnectionHandler (const HttpConnectionHandlerSettings &settings, HttpRequestHandler *requestHandler, HttpSslConfiguration *sslConfiguration=NULL) | |
Constructor. More... | |
virtual | ~HttpConnectionHandler () |
Destructor. More... | |
bool | isBusy () |
Returns true, if this handler is in use. More... | |
void | setBusy () |
Mark this handler as busy. More... | |
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 73 of file httpconnectionhandler.h.
HttpConnectionHandler::HttpConnectionHandler | ( | const HttpConnectionHandlerSettings & | settings, |
HttpRequestHandler * | requestHandler, | ||
HttpSslConfiguration * | sslConfiguration = NULL |
||
) |
Constructor.
settings | Configuration settings of the HTTP webserver |
requestHandler | Handler that will process each incoming HTTP request |
sslConfiguration | SSL (HTTPS) will be used if not NULL |
|
virtual |
Destructor.
|
slot |
Received from from the listener, when the handler shall start processing a new connection.
socketDescriptor | references the accepted connection. |
bool HttpConnectionHandler::isBusy | ( | ) |
Returns true, if this handler is in use.
void HttpConnectionHandler::setBusy | ( | ) |
Mark this handler as busy.