MCPcopy Index your code
hub / github.com/encode/httpx / serve

Method serve

tests/conftest.py:235–243  ·  view source on GitHub ↗
(self, sockets=None)

Source from the content-addressed store, hash-verified

233 pass # pragma: nocover
234
235 async def serve(self, sockets=None):
236 self.restart_requested = asyncio.Event()
237
238 loop = asyncio.get_event_loop()
239 tasks = {
240 loop.create_task(super().serve(sockets=sockets)),
241 loop.create_task(self.watch_restarts()),
242 }
243 await asyncio.wait(tasks)
244
245 async def restart(self) -> None: # pragma: no cover
246 # This coroutine may be called from a different thread than the one the

Callers

nothing calls this directly

Calls 1

watch_restartsMethod · 0.95

Tested by

no test coverage detected