def handle(self): self.request.send(str(SystemClock.getUTCTime())) print("request from %s" % (self.client_address[0]))
def do_GET(self): self.send_response(200) self.send_header('Content-type', 'text/plain') self.end_headers() self.wfile.write(SystemClock.getUTCTime())