MCPcopy Index your code
hub / github.com/masterking32/MasterHttpRelayVPN / encodeBytesToBase64

Function encodeBytesToBase64

apps_script/cloudflare_worker.js:34–38  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

32}
33
34function encodeBytesToBase64(bytes) {
35 let bin = "";
36 for (let i = 0; i < bytes.length; i++) bin += String.fromCharCode(bytes[i]);
37 return btoa(bin);
38}
39
40function sanitizeHeaders(h) {
41 const out = {};

Callers 1

fetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected