Function: AuthenticationCallback

CALL:

AuthenticationCallback(event)

DESCRIPTION:

Callback called by modelit.webserver.Server object for generating a simple html response. Authentication is required for this service.

INPUT:

event modelit.webserver.HttpExchange
contains the request data and methods to generate a response.

OUTPUT:

      No output, a response with a simple html string with the current time is returned.
 

EXAMPLE:

   server = modelit.web.server.Server(8081, @AuthenticationCallback).start() 
 
   Open a webbrowser and type: http://localhost:8081 in the address bar