()
| 3 | |
| 4 | |
| 5 | def main(): |
| 6 | client = BlockingClient( |
| 7 | impersonate=Impersonate.Firefox135, |
| 8 | user_agent="rnet", |
| 9 | ) |
| 10 | with client.get("https://tls.peet.ws/api/all") as resp: |
| 11 | print("Status Code: ", resp.status_code) |
| 12 | print("Version: ", resp.version) |
| 13 | print("Response URL: ", resp.url) |
| 14 | print("Headers: ", resp.headers) |
| 15 | print("Encoding: ", resp.encoding) |
| 16 | print("Content-Length: ", resp.content_length) |
| 17 | print("Remote Address: ", resp.remote_addr) |
| 18 | print("Text: ", resp.text()) |
| 19 | |
| 20 | |
| 21 | if __name__ == "__main__": |
no test coverage detected