text: #!/usr/bin/python3
  
  from http.server import BaseHTTPRequestHandler, HTTPServer
  import time
  
  hostName = "localhost"
  hostPort = 80
  
  class MyServer(BaseHTTPRequestHandler):
      def do_GET(self):
          self.send_response(200)
          self.send_header("Content-type", "application/json")
          self.end_headers()
  
  myServer = HTTPServer((hostName, hostPort), MyServer)
  print(time.asctime(), "Server Starts - %s:%s" % (hostName, hostPort))
  
  try:
      myServer.serve_forever()
  except KeyboardInterrupt:
      pass
  
  myServer.server_close()
  print(time.asctime(), "Server Stops - %s:%s" % (hostName, hostPort))
  