AuthenticationCallback(event)
Callback called by modelit.webserver.Server object for generating a simple html response. Authentication is required for this service.
event | modelit.webserver.HttpExchange | contains the request data and methods to generate a response. |
No output, a response with a simple html string with the current time is returned.
server = modelit.web.server.Server(8081, @AuthenticationCallback).start() Open a webbrowser and type: http://localhost:8081 in the address bar