undici
undici copied to clipboard
An HTTP/1.1 client, written from scratch for Node.js
## Bug Description Documentation about RequestOptions is inconsistent. ## Reproducible By Comparing the following: https://github.com/nodejs/undici#undicirequesturl-options-promise  https://github.com/nodejs/undici/blob/main/docs/api/Dispatcher.md#parameter-requestoptions  https://github.com/nodejs/undici/blob/main/docs/api/Dispatcher.md#parameter-dispatchoptions  https://github.com/nodejs/undici/blob/main/types/api.d.ts#L16  ## Expected Behavior Expected consistent types in code...
It would be useful if balanced pool would do a dns lookup on non ip upstreams to loadbalance between all ips in the dns record.
## Context: In the node.js ecosystem, largely lead by express & the [debug module](https://npm.im/debug), there is the ability to turn on lower level debugging than that which you would normally...
Look at the code. 1. Use the `deflateRawSync` is not conform to the http standard. But most browser can correctly open it. 2. The error `AboutError` is not clearly. 3....
Check this example based on these docs https://undici.nodejs.org/#/docs/api/MockPool?id=example-basic-mockpool-instantiation ## When ``` const { MockAgent, setGlobalDispatcher, Pool } = require('undici') const mockAgent = new MockAgent() setGlobalDispatcher(mockAgent) const mockPool = mockAgent.get('https://jsonplaceholder.typicode.com') mockPool.intercept({...
The fetch spec mentions "realm" and "relevant realm" a lot. I assume this is something similar to async context in NodeJS? Should we try to translate the API and implement...
Figure out what error messages Chrome provides for various errors and make it so we have the same.
What should we use as highWaterMark for the fetch api? I think browsers usually have 1m+ while Node has ~16k. Should we try matching the browsers? I think this has...
Both fetch and RedirectAgent implement redirects but differently. Try to unify this.