(
self,
harId: str,
url: str,
method: str,
headers: HeadersArray,
isNavigationRequest: bool,
postData: Optional[bytes] = None,
)
| 38 | await self._channel.send("harOpen", None, params) |
| 39 | |
| 40 | async def har_lookup( |
| 41 | self, |
| 42 | harId: str, |
| 43 | url: str, |
| 44 | method: str, |
| 45 | headers: HeadersArray, |
| 46 | isNavigationRequest: bool, |
| 47 | postData: Optional[bytes] = None, |
| 48 | ) -> HarLookupResult: |
| 49 | params = locals_to_params(locals()) |
| 50 | if "postData" in params: |
| 51 | params["postData"] = base64.b64encode(params["postData"]).decode() |
| 52 | return cast( |
| 53 | HarLookupResult, |
| 54 | await self._channel.send_return_as_dict("harLookup", None, params), |
| 55 | ) |
| 56 | |
| 57 | async def har_close(self, harId: str) -> None: |
| 58 | params = locals_to_params(locals()) |
no test coverage detected