MCPcopy Index your code
hub / github.com/microsoft/playwright-python / set_route

Method set_route

tests/server.py:261–264  ·  view source on GitHub ↗
(
        self, path: str, callback: Callable[[TestServerRequest], Any]
    )

Source from the content-addressed store, hash-verified

259 self._ws_handlers.clear()
260
261 def set_route(
262 self, path: str, callback: Callable[[TestServerRequest], Any]
263 ) -> None:
264 self.routes[path] = callback
265
266 def enable_gzip(self, path: str) -> None:
267 self.gzip_routes.add(path)

Calls

no outgoing calls