MCPcopy Create free account
hub / github.com/Vinyzu/Botright / HTTPServer

Class HTTPServer

tests/server.py:197–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195
196
197class HTTPServer(Server):
198 def listen(self, factory: http.HTTPFactory) -> None:
199 reactor.listenTCP(self.PORT, factory, interface="127.0.0.1")
200 try:
201 reactor.listenTCP(self.PORT, factory, interface="::1")
202 except Exception:
203 pass
204
205
206class TestServer:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected