Public Slots | Public Member Functions | Public Attributes

HttpConnectionHandler Class Reference

The connection handler accepts incoming connections and dispatches incoming requests to to a request mapper. More...

#include <httpconnectionhandler.h>

List of all members.

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.

Detailed Description

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.

See also:
HttpRequest for description of config settings maxRequestSize and maxMultiPartSize

Definition at line 32 of file httpconnectionhandler.h.


Constructor & Destructor Documentation

HttpConnectionHandler::HttpConnectionHandler ( QSettings *  settings,
HttpRequestHandler requestHandler 
)

Constructor.

Parameters:
settings Configuration settings of the HTTP webserver
requestHandler handler that will process each incomin HTTP request

Definition at line 11 of file httpconnectionhandler.cpp.


Member Function Documentation

void HttpConnectionHandler::handleConnection ( int  socketDescriptor  )  [slot]

Received from from the listener, when the handler shall start processing a new connection.

Parameters:
socketDescriptor references the accepted connection.

Definition at line 52 of file httpconnectionhandler.cpp.


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