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

Method fulfill

playwright/_impl/_network.py:381–395  ·  view source on GitHub ↗
(
        self,
        status: int = None,
        headers: Dict[str, str] = None,
        body: Union[str, bytes] = None,
        json: Any = None,
        path: Union[str, Path] = None,
        contentType: str = None,
        response: "APIResponse" = None,
    )

Source from the content-addressed store, hash-verified

379 )
380
381 async def fulfill(
382 self,
383 status: int = None,
384 headers: Dict[str, str] = None,
385 body: Union[str, bytes] = None,
386 json: Any = None,
387 path: Union[str, Path] = None,
388 contentType: str = None,
389 response: "APIResponse" = None,
390 ) -> None:
391 await self._handle_route(
392 lambda: self._inner_fulfill(
393 status, headers, body, json, path, contentType, response
394 )
395 )
396
397 async def _inner_fulfill(
398 self,

Callers 15

_handleMethod · 0.45
test_memory_objectsFunction · 0.45
test_should_chain_onceFunction · 0.45
handlerFunction · 0.45
handle_requestFunction · 0.45
handleFunction · 0.45
handleFunction · 0.45
route_handlerFunction · 0.45
handleFunction · 0.45

Calls 2

_handle_routeMethod · 0.95
_inner_fulfillMethod · 0.95

Tested by 15

test_memory_objectsFunction · 0.36
test_should_chain_onceFunction · 0.36
handlerFunction · 0.36
handle_requestFunction · 0.36
handleFunction · 0.36
handleFunction · 0.36
route_handlerFunction · 0.36
handleFunction · 0.36
handle_routeFunction · 0.36