MCPcopy Create free account
hub / github.com/TomClive/SeeDance2Stitcher / readBody

Function readBody

server.js:381–388  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

379}
380
381function readBody(req) {
382 return new Promise((resolve, reject) => {
383 const chunks = [];
384 req.on("data", chunk => chunks.push(chunk));
385 req.on("end", () => resolve(Buffer.concat(chunks)));
386 req.on("error", reject);
387 });
388}
389
390function parseMultipart(buffer, contentType) {
391 const match = /boundary=(?:"([^"]+)"|([^;]+))/i.exec(contentType || "");

Callers 4

saveMultipartVideosFunction · 0.85
handleAnalyzeFunction · 0.85
handleExportFunction · 0.85
handleExportCollageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected