You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/proxies.md
+48-6Lines changed: 48 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Proxies
2
2
3
-
The `httpcore` package currently provides support for HTTP proxies, using either "HTTP Forwarding" and "HTTP Tunnelling". Forwarding is a proxy mechanism for sending requests to `http` URLs via an intermediate proxy. Tunnelling is a proxy mechanism for sending requests to `https` URLs via an intermediate proxy.
3
+
The `httpcore` package provides support for HTTP proxies, using either "HTTP Forwarding" or "HTTP Tunnelling". Forwarding is a proxy mechanism for sending requests to `http` URLs via an intermediate proxy. Tunnelling is a proxy mechanism for sending requests to `https` URLs via an intermediate proxy.
4
4
5
5
Sending requests via a proxy is very similar to sending requests using a standard connection pool:
6
6
@@ -25,22 +25,64 @@ Requests will automatically use either forwarding or tunnelling, depending on if
25
25
26
26
## Authentication
27
27
28
-
Proxy headers can be included in the initial configuration:
28
+
Proxy authentication can be included in the initial configuration:
29
+
30
+
```python
31
+
import httpcore
32
+
33
+
# A `Proxy-Authorization` header will be included on the initial proxy connection.
0 commit comments