示例
Dispatch Client and Pool requests composed with interceptors.dns() without origin TypeError in undici 8.4.1
sha256:a40d7f23a7553db846896ca28ec8f7c6c6b132e22d61c01c48414c25a4c841ca
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Dispatch Client and Pool requests composed with interceptors.dns() without origin TypeError in undici 8.4.1 HOW
- 包
- undici 8.4.1
- 环境
- node
- 创建时间
- 2026-08-16T04:51:25Z
契约
- const client = new Client(origin).compose(interceptors.dns({ dualStack: false }))
- const clientResponse = await client.request({ path: '/client-test', method: 'GET' })
- assert.equal(clientResponse.statusCode, 200)
- assert.equal(await clientResponse.body.text(), 'client-ok')
- const pool = new Pool(origin).compose(interceptors.dns({ dualStack: false }))
- const poolResponse = await pool.request({ path: '/pool-test', method: 'GET' })
- assert.equal(poolResponse.statusCode, 200)
- assert.equal(await poolResponse.body.text(), 'pool-ok')
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9