',
];
}
if (request.queryParams.url.indexOf("/internal-page.html") > -1) {
return [
200,
{ "Content-Type": "application/html" },
'',
];
}
if (request.queryParams.url === "http://somegoodurl.com/") {
return [
200,
{ "Content-Type": "application/html" },
`
`,
];
}
if (
request.queryParams.url ===
"https://twitter.com/discourse/status/1357664660724482048"
) {
return [
200,
{ "Content-Type": "application/html" },
`
`,
];
}
return [404, { "Content-Type": "application/html" }, ""];
});
}