MCPcopy
hub / github.com/di-sukharev/opencommit / bodyMimeType

Function bodyMimeType

out/cli.cjs:52437–52444  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

52435 buffer = buffer.subarray(3);
52436 }
52437 const output = textDecoder.decode(buffer);
52438 return output;
52439 }
52440 function parseJSONFromBytes(bytes) {
52441 return JSON.parse(utf8DecodeBytes(bytes));
52442 }
52443 function bodyMimeType(object) {
52444 const { headersList } = object[kState];
52445 const contentType = headersList.get("content-type");
52446 if (contentType === null) {
52447 return "failure";

Callers 1

blobFunction · 0.85

Calls 2

parseMIMETypeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…