Show / Hide Table of Contents

Method HttpServerSession.MessageReceived


Overload

Called when the server receives a HTTP request message.

protected abstract void MessageReceived(HSMessage m, HSResponse r)
Parameters
m  (HSMessage)

Contains request info and content.

r  (HSResponse)

Allows to set response info and content.

Remarks

Not called if failed to read the message.

The server uses try/catch when calling this. Prints unhandled exceptions if HttpServerSession.Verbosetrue. On unhandled exception sends error 500 (InternalServerError) and closes the connection.