HttpConnectionHandler.handleHttpException

Handles HTTP exception e which was thrown while parsing the request message or from handleRequest() or request_msg_body_length(). A subclass may override this method to be notified when an exception is thrown and decide whether the connection may stay persistent or should be closed after the response has been sent. The default behaviour is allowing the connection being persistent unless the status code indicated by the exception is 413: "Request Entity Too Large".

class HttpConnectionHandler
protected
bool
handleHttpException

Parameters

e HttpException

HTTP server exception e which was thrown while parsing the request message or from handleRequest() or request_msg_body_length(). e.status reflects the response status code and may be changed when overriding this method.

Return Value

Type: bool

true if the connection may stay persistent or false if it should be closed after the response has been sent.

Meta