// Fixed public fixtures. HTTPBingo's /base64 endpoint escapes custom HTML, // so it cannot serve a scripted page for Scramjet compatibility checks. export const PUBLIC_FIXTURE_URLS = Object.freeze({ fixture: "https://httpbingo.org/html", "fixture-image": "https://httpbingo.org/image/png", "fixture-redirect": "https://httpbingo.org/redirect/1", "fixture-utf8": "https://httpbingo.org/encoding/utf8", }); export function launchpadFixtureLink(url) { const parsed = new URL(url); if (parsed.origin !== "https://httpbingo.org" || parsed.username || parsed.password) { throw new TypeError("Only HTTPS public HTTPBingo fixtures are supported."); } return "/?target=" + encodeURIComponent(parsed.href); }