(read_timeout: float)
| 266 | |
| 267 | |
| 268 | def _build_remote_browser_http_timeout(read_timeout: float) -> Any: |
| 269 | read_value = max(3.0, float(read_timeout)) |
| 270 | write_value = min(10.0, max(3.0, read_value)) |
| 271 | if httpx is None: |
| 272 | return read_value |
| 273 | return httpx.Timeout( |
| 274 | connect=2.5, |
| 275 | read=read_value, |
| 276 | write=write_value, |
| 277 | pool=2.5, |
| 278 | ) |
| 279 | |
| 280 | |
| 281 | def _parse_json_response_text(text: str) -> Optional[Any]: |
no outgoing calls
no test coverage detected