undici
undici copied to clipboard
An HTTP/1.1 client, written from scratch for Node.js
## Bug Description I'm trying to send a request to a local server running HTTP/2 without TLS (H2C) over a unix domain socket. This is what my company uses for...
https://whatpr.org/websockets/48/7b748d3...7b81f79.html#the-websocketstream-interface Now that the spec has been written, it's time to add it. ```mjs const ws = new WebSocketStream(`wss://my.websocket.server`) ws.opened.then((init) => { const writer = init.writable.getWriter() writer.ready.then(() => writer.write(Buffer.from([65, 66,...
### Discussed in https://github.com/nodejs/undici/discussions/2891 Originally posted by **metcoder95** February 29, 2024 Hey! 👋 Wanted to open a discussion just to get your thoughts on this as I have been thinking...
The current behavior was broken. The user must decide if and how a request should be retried. ## This relates to... ## Rationale ## Changes ### Features ### Bug Fixes...
I find it highly confusing, that e.g. when I call .body() on a fetch response and it errors I get all the internal functions in the stacktrace. This is maybe...
TODO: - [x] remove anti-pattern dispatcher hooks - [x] remove old interceptor pattern (https://github.com/nodejs/undici/pull/2754) - [x] new interceptor pattern (https://github.com/nodejs/undici/pull/2795) - [ ] change so that dispatcher hooks take an...
WebSocket: message handler sometimes called with null data (potentially issue in frame processing)
## Bug Description I’ll say right away that the bug is floating and I don’t have a ready-made recipe for reproducing it. The bug usually appeared during debugging. Apparently, timings...
If a user can't consume the body anymore, we can just dump it. We can detect a response is not accessible by the use of a `FinalizationRegistry`. @KhafraDev I think...