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

Function delete_foo_header

tests/async/test_page_request_fallback.py:194–197  ·  view source on GitHub ↗
(route: Route, request: Request)

Source from the content-addressed store, hash-verified

192 await page.route("**/*", capture_and_continue)
193
194 async def delete_foo_header(route: Route, request: Request) -> None:
195 headers = await request.all_headers()
196 del headers["foo"]
197 await route.fallback(headers=headers)
198
199 await page.route(server.PREFIX + "/something", delete_foo_header)
200

Callers

nothing calls this directly

Calls 2

all_headersMethod · 0.45
fallbackMethod · 0.45

Tested by

no test coverage detected