code: def serve(self):
          
          while self.ready:
              try:
                  self.tick()
              except (KeyboardInterrupt, SystemExit):
                  raise
              except Exception:
                  self.error_log(
                      'Error in HTTPServer.tick', level=logging.ERROR,
                      traceback=True,
                  )
  
              if self.interrupt:
                  while self.interrupt is True:
                      # Wait for self.stop() to complete. See _set_interrupt.
                      time.sleep(0.1)
                  if self.interrupt:
                      raise self.interrupt
docs: Serve requests, after invoking :func:`prepare()`.