MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / makeRaw

Function makeRaw

src/common/string.js:90–94  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

88 * @returns {Promise<string>}
89 */
90export async function makeRaw(response) {
91 const type = (response.headers.get('content-type') || '').split(';')[0] || '';
92 const body = await blob2base64(response.data);
93 return `${type},${body}`;
94}
95
96export function loadQuery(string) {
97 const res = {};

Callers 2

storage-fetch.jsFile · 0.90
RequestFunction · 0.90

Calls 2

blob2base64Function · 0.90
getMethod · 0.45

Tested by

no test coverage detected