MCPcopy Create free account
hub / github.com/BrainicHQ/DoHSpeedTest / encodeDnsQueryBase64Url

Function encodeDnsQueryBase64Url

script.js:766–769  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

764}
765
766function encodeDnsQueryBase64Url(query) {
767 const binary = Array.from(query, byte => String.fromCharCode(byte)).join('');
768 return btoa(binary).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
769}
770
771// ─── Results Display ─────────────────────────────────────────────────────────
772

Callers 2

measureDNSSpeedFunction · 0.85
checkServerCapabilitiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected