Skip to content

Commit 625bd8a

Browse files
author
vhess
committed
clarify some missing options in fetch
1 parent 3550ee4 commit 625bd8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ The following table shows which configuration options are compatible with differ
665665
|--------|-------------------|---------------|--------|
666666
| `target` | ✅ | ✅ | Core option, works in both paths |
667667
| `forward` | ✅ | ✅ | Core option, works in both paths |
668-
| `agent` | ✅ | ❌ | Native agents only, use `fetch.dispatcher` instead |
668+
| `agent` | ✅ | ❌ | Native agents only |
669669
| `ssl` | ✅ | ✅ | HTTPS server configuration |
670670
| `ws` | ✅ | ❌ | WebSocket proxying uses native path only |
671671
| `xfwd` | ✅ | ✅ | X-Forwarded headers |
@@ -674,8 +674,8 @@ The following table shows which configuration options are compatible with differ
674674
| `prependPath` | ✅ | ✅ | Path manipulation |
675675
| `ignorePath` | ✅ | ✅ | Path manipulation |
676676
| `localAddress` | ✅ | ✅ | Local interface binding |
677-
| `changeOrigin` | ✅ | | Host header rewriting |
678-
| `preserveHeaderKeyCase` | ✅ | | Header case preservation |
677+
| `changeOrigin` | ✅ | | Host header rewriting |
678+
| `preserveHeaderKeyCase` | ✅ | | Header case preservation |
679679
| `auth` | ✅ | ✅ | Basic authentication |
680680
| `hostRewrite` | ✅ | ✅ | Redirect hostname rewriting |
681681
| `autoRewrite` | ✅ | ✅ | Automatic redirect rewriting |
@@ -693,7 +693,7 @@ The following table shows which configuration options are compatible with differ
693693
| `fetch` | ❌ | ✅ | Fetch-specific configuration |
694694
695695
**Notes:**
696-
- ¹ `secure` is not directly supported in the fetch path. Instead, use `fetch.dispatcher` with `{connect: {rejectUnauthorized: false}}` to disable SSL certificate verification (e.g., for self-signed certificates).
696+
- ¹ `secure` is not directly supported in the fetch path. Instead, use a custom dispatcher with `{rejectUnauthorized: false}` to disable SSL certificate verification (e.g., for self-signed certificates).
697697
698698
**Code Path Selection:**
699699
- **Native Path**: Used by default, supports HTTP/1.1 and WebSockets

0 commit comments

Comments
 (0)