serveTLS
import { serveTLS } from "https://raw.githubusercontent.com/lucacasonato/deno-fetchevent/master/mod.ts";
Start an HTTPS server with given options
const options = {
hostname: "localhost",
port: 443,
certFile: "./path/to/localhost.crt",
keyFile: "./path/to/localhost.key",
};
for await (const event of serveTLS(options)) {
event.respondWith(Response.redirect("https://deno.land", 303));
}