MCPcopy Create free account
hub / github.com/github/copilot-sdk / drainBody

Function drainBody

nodejs/test/e2e/copilot_request_handler.e2e.test.ts:140–146  ·  view source on GitHub ↗
(req: IncomingMessage)

Source from the content-addressed store, hash-verified

138}
139
140async function drainBody(req: IncomingMessage): Promise<Buffer> {
141 const parts: Buffer[] = [];
142 for await (const chunk of req) {
143 parts.push(chunk as Buffer);
144 }
145 return Buffer.concat(parts);
146}
147
148function buildResponsesEvents(text: string, id: string): Array<Record<string, unknown>> {
149 return [

Callers 1

startFakeUpstreamFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…