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

Method unroute

playwright/_impl/_page.py:702–712  ·  view source on GitHub ↗
(
        self, url: URLMatch, handler: Optional[RouteHandlerCallback] = None
    )

Source from the content-addressed store, hash-verified

700 return DisposableStub(lambda: self.unroute(url, handler), self)
701
702 async def unroute(
703 self, url: URLMatch, handler: Optional[RouteHandlerCallback] = None
704 ) -> None:
705 removed = []
706 remaining = []
707 for route in self._routes:
708 if route.url != url or (handler and route.handler != handler):
709 remaining.append(route)
710 else:
711 removed.append(route)
712 await self._unroute_internal(removed, remaining, "default")
713
714 async def _unroute_internal(
715 self,

Calls 2

_unroute_internalMethod · 0.95
appendMethod · 0.80