MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / decode

Function decode

www/js/ext/eventsource.js:332–337  ·  view source on GitHub ↗
(data, encoding)

Source from the content-addressed store, hash-verified

330 };
331 }
332 function decode(data, encoding) {
333 if (encoding.toLowerCase() === "json") {
334 return JSON.parse(data);
335 }
336 return data;
337 }
338 function createStream(response, runtime, context) {
339 var element = context.me;
340 var reader = response.body.getReader();

Callers 1

makeHandlerFunction · 0.70

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected