undici
undici copied to clipboard
An HTTP/1.1 client, written from scratch for Node.js
## This relates to... ## Rationale ## Changes ### Features ### Bug Fixes ### Breaking Changes and Deprecations ## Status - [x] I have read and agreed to the [Developer's...
```js import { Request } from 'undici' import { ok, strictEqual } from 'node:assert' const controller = new AbortController(); const signal = controller.signal; const request = new Request('http://a', { signal...
We added five diagnostics channels on fetch to trace the same information as would [tracingChannel.tracePromise](https://nodejs.org/api/diagnostics_channel.html#tracingchanneltracepromisefn-context-thisarg-args). Some channels won't make perfect sense but we want to stay consistent with [TracingChannel](https://nodejs.org/api/diagnostics_channel.html#class-tracingchannel) as...
## Bug Description If you need to add a custom CA, you seem to have 3 possible solutions, but **only the 3rd (not recommended) worked for me**. For solution 1...
## Bug Description When a POST request is made using a dispatch interceptor and undici.DecoratorHandler, an error is thrown if the request includes a body. However, if the request does...
## This would solve... I spend two hours with a coworker trying to figure out how to upload a file using multi part formdata encoding and gave up and loaded...
## Bug Description A memory leak occurs when frequently aborting fetch requests. ## Reproducible By Run the following code in Node.js. ```javascript import undici from "undici"; (function attack() { const...
## This would solve... I found it challenging to navigate the documentation and understand how to do things like - What are all the options available to `request()` - I...
We use a dataview here for performance reasons. I should have addressed this in #2106 but I did not. Refs: https://github.com/nodejs/performance/issues/2
## Bug Description There is a unprecise error message ("fetch failed") on fetch() to an endpoint with a certificate which was signed by an "unkown" CA. If its an custom...