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

Function blob

out/cli.cjs:6141–6154  ·  view source on GitHub ↗

* Return raw response as Blob * * @return Promise

()

Source from the content-addressed store, hash-verified

6139 * @return Promise
6140 */
6141 blob() {
6142 let ct2 = this.headers && this.headers.get("content-type") || "";
6143 return consumeBody.call(this).then(function(buf) {
6144 return Object.assign(
6145 // Prevent copying
6146 new Blob5([], {
6147 type: ct2.toLowerCase()
6148 }),
6149 {
6150 [BUFFER]: buf
6151 }
6152 );
6153 });
6154 },
6155 /**
6156 * Decode response as json
6157 *

Callers

nothing calls this directly

Calls 6

specConsumeBodyFunction · 0.85
bodyMimeTypeFunction · 0.85
serializeAMimeTypeFunction · 0.85
thenMethod · 0.80
toLowerCaseMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…