undici
undici copied to clipboard
An HTTP/1.1 client, written from scratch for Node.js
this is a follow up to the follow up.
This is more of a runtime issue but I'm still confused why/how undici requires `SharedArrayBuffer`. The problem occurs with: ``` require('undici') ``` ``` Uncaught TypeError: SharedArrayBuffer is not a constructor...
## This would solve... I'm migrating from `nock` to `undici` mocks and after each test, I clear all active mocks, so that they do not interact with other test cases....
## This relates to... - Fixes #3412 - Related to #3274 ## Rationale Exposing the response decompression logic (i.e. the handling of the `Content-Encoding` header) will allow other Node.js libraries...
## This Would Solve... I want more granular and flexible control over retry behavior. For example, instead of retrying only with specific error codes, I want to bail out of...
## This would solve... The current error is cryptic, to say the least: https://github.com/nodejs/undici/blob/68107da3fdd6cd0397f4800a2bc9630c802eda58/lib/web/fetch/index.js#L945 ## The implementation should look like... ```js makeNetworkError('Failed to fetch the "file" URL scheme: not implemented')...
## This relates to... ## Rationale ## Changes ### Features ### Bug Fixes ### Breaking Changes and Deprecations ## Status - [ ] I have read and agreed to the...
Adjust to avoid creating a temporary buffer
Fixes https://github.com/nodejs/undici/issues/3731