HTMLCallback(event)
Callback called by modelit.webserver.Server object for generating a HTML response.
event | modelit.webserver.HttpExchange | with the request data and methods to generate a response. |
No output, a response with an HTML text is return to the client.
server = modelit.web.server.Server('localhost', 8081, @HTMLCallback).start() % Open a webbrowser and type: http://localhost:8081 in the address bar % Now an html message appears in the browser.