undici
undici copied to clipboard
Request Body as Factory Method
Allow passing a factory method as body which would return a Readable
. This would allow e.g. idempotent PUT
requests which e.g. read from a file to be part of the indirect inflight failure retries.
Alternatively an async generator function which is retryable by definition.
It would be nice. However unlikely to work in most cases as the body can not be fetched more than once.
It would be nice. However unlikely to work in most cases as the body can not be fetched more than once.
If it's being read from a file or from an upstream request... it could be
Can we close this? https://github.com/nodejs/undici/pull/848
Not quite.
What is left to do here?