Skip to content

Commit 1617761

Browse files
committed
improve dispatcher
1 parent 5efb029 commit 1617761

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ async function main() {
146146
sdkConfig: {
147147
timeout: 30000, // Request timeout in milliseconds (optional)
148148
bodyTimeout: 10000, // Body timeout in milliseconds (optional)
149-
dispatcher: new ProxyAgent('http://custom-proxy:8080') // Custom proxy dispatcher (optional)
149+
dispatcher: new ProxyAgent("http://proxy:port", {
150+
requestTls: { rejectUnauthorized: false }
151+
}) // Custom undici dispatcher (optional)
150152
}
151153
})
152154

0 commit comments

Comments
 (0)