MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / DocServer

Class DocServer

tools/python-3.11.9-amd64/Lib/pydoc.py:2464–2483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2462 pass
2463
2464 class DocServer(http.server.HTTPServer):
2465
2466 def __init__(self, host, port, callback):
2467 self.host = host
2468 self.address = (self.host, port)
2469 self.callback = callback
2470 self.base.__init__(self, self.address, self.handler)
2471 self.quit = False
2472
2473 def serve_until_quit(self):
2474 while not self.quit:
2475 rd, wr, ex = select.select([self.socket.fileno()], [], [], 1)
2476 if rd:
2477 self.handle_request()
2478 self.server_close()
2479
2480 def server_activate(self):
2481 self.base.server_activate(self)
2482 if self.callback:
2483 self.callback(self)
2484
2485 class ServerThread(threading.Thread):
2486

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected