MCPcopy
hub / github.com/JakeChampion/fetch / consumed

Function consumed

fetch.js:167–173  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

165}
166
167function consumed(body) {
168 if (body._noBody) return
169 if (body.bodyUsed) {
170 return Promise.reject(new TypeError('Already read'))
171 }
172 body.bodyUsed = true
173}
174
175function fileReaderReady(reader) {
176 return new Promise(function(resolve, reject) {

Callers 1

BodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…