File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,30 @@ session.post('https://example.com/form', data={'key': 'value'})
175175print (session.cookies)
176176```
177177
178+ ### Proxy Support
179+
180+ ``` python
181+ # HTTP proxy
182+ response = httpmorph.get(
183+ ' https://example.com' ,
184+ proxy = ' http://proxy.example.com:8080'
185+ )
186+
187+ # Proxy with authentication
188+ response = httpmorph.get(
189+ ' https://example.com' ,
190+ proxy = ' http://proxy.example.com:8080' ,
191+ proxy_auth = (' username' , ' password' )
192+ )
193+
194+ # requests-compatible dict format
195+ proxies = {
196+ ' http' : ' http://proxy.example.com:8080' ,
197+ ' https' : ' http://proxy.example.com:8080'
198+ }
199+ response = httpmorph.get(' https://example.com' , proxies = proxies)
200+ ```
201+
178202### Error Handling
179203
180204``` python
@@ -193,7 +217,6 @@ except httpmorph.HTTPError as e:
193217
194218This library is a work in progress. Known limitations:
195219
196- - No proxy support
197220- No SSL verification configuration
198221- No connection pooling
199222- No streaming requests/responses
You can’t perform that action at this time.
0 commit comments