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
* feat: support array of base URLs for undici balancedPool in request options
* feat: enhance base URL option to support array for load balancing with undici.BalancedPool
* fix: correct typos in README.md
Set the base URL for all the forwarded requests. Will be required if `http2` is set to `true`
70
70
Note that _every path will be discarded_.
71
71
72
+
Set the base URL for all the forwarded requests.
73
+
*String or String[]*:
74
+
75
+
***Single string** → a normal `undici.Pool` / `http.request` client is used.
76
+
***Array with ≥ 2 elements** → **[`undici.BalancedPool`](https://undici.nodejs.org/#/docs/api/BalancedPool)** is automatically selected and requests are load-balanced round-robin across the given origins.
77
+
78
+
When you provide an array, only the *origin* (`protocol://host:port`) part of each URL is considered; any path component is ignored.
79
+
80
+
72
81
Custom URL protocols `unix+http:` and `unix+https:` can be used to forward requests to a unix
73
82
socket server by using `querystring.escape(socketPath)` as the hostname. This is not supported
0 commit comments