MCPcopy Create free account
hub / github.com/MemTensor/MemOS / readBody

Method readBody

packages/memos-core/src/viewer/server.ts:4965–4969  ·  view source on GitHub ↗
(req: http.IncomingMessage, cb: (body: string) => void)

Source from the content-addressed store, hash-verified

4963 }
4964
4965 private readBody(req: http.IncomingMessage, cb: (body: string) => void): void {
4966 let body = "";
4967 req.on("data", (chunk: Buffer) => { body += chunk.toString(); });
4968 req.on("end", () => cb(body));
4969 }
4970
4971 private jsonResponseAndRestart(
4972 res: http.ServerResponse,

Callers 15

handleSetupMethod · 0.95
handleLoginMethod · 0.95
handlePasswordResetMethod · 0.95
handleSkillVisibilityMethod · 0.95
handleTaskUpdateMethod · 0.95
handleSkillUpdateMethod · 0.95
handleUpdateMethod · 0.95
handleMemoryScopeMethod · 0.95
handleTaskScopeMethod · 0.95
handleSkillScopeMethod · 0.95

Calls 1

onMethod · 0.65

Tested by

no test coverage detected