(delay)
| 3 | |
| 4 | |
| 5 | async def main(delay): |
| 6 | url = f"https://httpbin.org/delay/{delay}" |
| 7 | print(f"fetching {url}...") |
| 8 | res = await browser.fetch( |
| 9 | url, response_format="json", headers={"X-Header-Thing": "rustpython is neat!"} |
| 10 | ) |
| 11 | print(f"got res from {res['url']}:") |
| 12 | print(res, end="\n\n") |
| 13 | |
| 14 | |
| 15 | for delay in range(3): |
no test coverage detected