Test request using Firefox browser impersonation Demonstrates basic browser impersonation with custom header order
()
| 24 | |
| 25 | |
| 26 | async def request_firefox(): |
| 27 | """Test request using Firefox browser impersonation |
| 28 | |
| 29 | Demonstrates basic browser impersonation with custom header order |
| 30 | """ |
| 31 | print("\n[Testing Firefox Impersonation]") |
| 32 | client = Client( |
| 33 | impersonate=Impersonate.Firefox135, |
| 34 | headers_order=["accept-encoding", "user-agent", "accept"], |
| 35 | tls_info=True, |
| 36 | ) |
| 37 | resp = await client.get("https://tls.peet.ws/api/all") |
| 38 | await print_response_info(resp) |
| 39 | return client |
| 40 | |
| 41 | |
| 42 | async def request_chrome_android(client: Client): |
no test coverage detected