Discards a fetch Response body so its underlying connection can return to the keep-alive
pool instead of being held open until GC finalizes an unconsumed stream. Node's fetch
(undici) pins the connection to any Response whose body was never read or cancelled.
Call this on a Response you're about to throw away without reading — most commonly an
error-status branch that returns/throws before calling .json()/.text()/etc. HttpRequest
and HttpClient already do this for you; reach for it directly only when a call site
uses raw fetch() or SafeFetch instead of going through them.
Discards a fetch
Responsebody so its underlying connection can return to the keep-alive pool instead of being held open until GC finalizes an unconsumed stream. Node'sfetch(undici) pins the connection to anyResponsewhose body was never read or cancelled.Call this on a
Responseyou're about to throw away without reading — most commonly an error-status branch that returns/throws before calling.json()/.text()/etc.HttpRequestand HttpClient already do this for you; reach for it directly only when a call site uses rawfetch()or SafeFetch instead of going through them.