Skip to content

Commit 3b7c6c7

Browse files
authored
Release (#6)
Updated Readme * Added Proxy Example
1 parent da21aba commit 3b7c6c7

File tree

2 files changed

+24
-472
lines changed

2 files changed

+24
-472
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,30 @@ session.post('https://example.com/form', data={'key': 'value'})
175175
print(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

194218
This 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

0 commit comments

Comments
 (0)