Skip to content

Commit a071ae1

Browse files
committed
links
1 parent c98a467 commit a071ae1

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
The `python-proxy-headers` package provides support for handling custom proxy headers when making HTTP requests in various python modules.
22

3-
We currently add support to the following packages:
4-
* urllib3
5-
* requests
6-
* httpx
7-
* aiohttp
3+
We currently provide extensions to the following packages:
84

9-
None of these modules provide good support for parsing custom response headers from proxy servers. And some of them make it hard to send custom headers to proxy servers. So we at [ProxyMesh](https://proxymesh.com) made these extension modules to support our customers that use Python and want to use custom headers to control our proxy behavior. But these modules can work for any custom headers through any proxy.
5+
* [urllib3](https://urllib3.readthedocs.io/en/stable/)
6+
* [requests](https://docs.python-requests.org/en/latest/index.html)
7+
* [httpx](https://www.python-httpx.org/)
8+
* [aiohttp](https://docs.aiohttp.org/en/stable/index.html)
109

11-
Examples for how to use our support modules are described below.
10+
None of these modules provide good support for parsing custom response headers from proxy servers. And some of them make it hard to send custom headers to proxy servers. So we at [ProxyMesh](https://proxymesh.com) made these extension modules to support our customers that use Python and want to use custom headers to control our proxy behavior. But these modules can work for handling custom headers with any proxy.
11+
12+
Examples for how to use these extension modules are described below.
1213

1314
## urllib3
1415

@@ -102,7 +103,7 @@ r = httpx_proxy.get('https://api.ipify.org?format=json', proxy=proxy)
102103
r.headers['X-ProxyMesh-IP']
103104
```
104105

105-
And finally, httpx supports async requests, so provide an async extension too:
106+
And finally, httpx supports async requests, so we provide an async extension too:
106107

107108
``` python
108109
import httpx
@@ -114,3 +115,6 @@ async with httpx.AsyncClient(mounts={'http://': transport, 'https://': transport
114115

115116
r.headers['X-ProxyMesh-IP']
116117
```
118+
119+
Our httpx helper module internally provides extension classes for [httpcore](https://www.encode.io/httpcore/), for handling proxy headers over tunnel connections.
120+
You can use those classes too if you're building on top of httpcore.

0 commit comments

Comments
 (0)