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

Function handle

tests/async/test_request_fulfill.py:22–24  ·  view source on GitHub ↗
(route: Route)

Source from the content-addressed store, hash-verified

20 page: Page, server: Server
21) -> None:
22 async def handle(route: Route) -> None:
23 response = await page.request.fetch(route.request)
24 await route.fulfill(response=response)
25
26 await page.route("**/*", handle)
27 response = await page.goto(server.PREFIX + "/title.html")

Callers

nothing calls this directly

Calls 3

fetchMethod · 0.45
fulfillMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected