MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / readRequestBody

Function readRequestBody

cli/src/commands/login.ts:81–91  ·  view source on GitHub ↗
(req: IncomingMessage)

Source from the content-addressed store, hash-verified

79}
80
81function readRequestBody(req: IncomingMessage): Promise<string> {
82 return new Promise((resolve, reject) => {
83 let body = "";
84 req.setEncoding("utf8");
85 req.on("data", (chunk) => {
86 body += chunk;
87 });
88 req.on("end", () => resolve(body));
89 req.on("error", reject);
90 });
91}
92
93function closeServer(server: Server): Promise<void> {
94 return new Promise((resolve) => {

Callers 1

waitForBrowserLoginFunction · 0.85

Calls 2

resolveFunction · 0.85
onMethod · 0.80

Tested by

no test coverage detected