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

Method _unroute_internal

playwright/_impl/_page.py:714–728  ·  view source on GitHub ↗
(
        self,
        removed: List[RouteHandler],
        remaining: List[RouteHandler],
        behavior: Literal["default", "ignoreErrors", "wait"] = None,
    )

Source from the content-addressed store, hash-verified

712 await self._unroute_internal(removed, remaining, "default")
713
714 async def _unroute_internal(
715 self,
716 removed: List[RouteHandler],
717 remaining: List[RouteHandler],
718 behavior: Literal["default", "ignoreErrors", "wait"] = None,
719 ) -> None:
720 self._routes = remaining
721 if behavior is not None and behavior != "default":
722 await asyncio.gather(
723 *map(
724 lambda route: route.stop(behavior), # type: ignore
725 removed,
726 )
727 )
728 await self._update_interception_patterns()
729
730 async def route_web_socket(
731 self, url: URLMatch, handler: WebSocketRouteHandlerCallback

Callers 2

unrouteMethod · 0.95
unroute_allMethod · 0.95

Calls 2

stopMethod · 0.45

Tested by

no test coverage detected