MCPcopy Create free account
hub / github.com/TanStack/ai / drainBody

Function drainBody

testing/e2e/global-setup.ts:742–748  ·  view source on GitHub ↗
(req: http.IncomingMessage)

Source from the content-addressed store, hash-verified

740}
741
742function drainBody(req: http.IncomingMessage): Promise<void> {
743 return new Promise((resolve, reject) => {
744 req.on('data', () => {})
745 req.on('end', () => resolve())
746 req.on('error', reject)
747 })
748}

Callers 1

handleRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected