()
| 4 | |
| 5 | |
| 6 | async def main(): |
| 7 | resp = await rnet.post( |
| 8 | "https://httpbin.org/anything", |
| 9 | proxy=Proxy.all( |
| 10 | url="http://127.0.0.1:6152", |
| 11 | custom_http_headers={ |
| 12 | "user-agent": "rnet", |
| 13 | "accept": "*/*", |
| 14 | "accept-encoding": "gzip, deflate, br", |
| 15 | "x-proxy": "rnet", |
| 16 | }, |
| 17 | ), |
| 18 | ) |
| 19 | print(await resp.text()) |
| 20 | |
| 21 | |
| 22 | if __name__ == "__main__": |