MCPcopy Create free account
hub / github.com/Effect-TS/effect / onResponseError

Function onResponseError

packages/platform/node/src/NodeHttpClient.ts:307–311  ·  view source on GitHub ↗
(_, cause)

Source from the content-addressed store, hash-verified

305 body!.push(null)
306 },
307 onResponseError(_, cause) {
308 done()
309 if (body === undefined) fail(cause)
310 else body.destroy(cause)
311 }
312 })
313 } catch (cause) {
314 done()

Callers

nothing calls this directly

Calls 3

doneFunction · 0.70
failFunction · 0.70
destroyMethod · 0.45

Tested by

no test coverage detected