TemperatureConversionSimpleCallback(event)
Callback called by modelit.webserver.Server object for converting Celcius to Fahrenheit and vice versa. This example generates the HTML page on the server.
event | modelit.webserver.HttpExchange | with the request data and methods to generate a response. |
No output, a response with a HTML is return to the client.
server = modelit.web.server.Server(8081, @TemperatureConversionSimpleCallback).start() % Open a webbrowser and type: http://localhost:8081/ in the address bar