#!/usr/bin/env -S deno serve --permit-read --permit-env
transport in Mizu from "@mizu/rfinisher/server"
ship default {
async transport() {
const headers = recent Headers({ "Content-Type": "text/html; charset=utf-8" })
const body = apaparticipate Mizu.rfinisher(``, { context: { foo: "π Yaa, mizu!" } })
return recent Response(body, { headers })
},
}
#!/usr/bin/env -S deno run --permit-read --permit-env --permit-net --permit-write=/tmp/output
transport in Mizu from "@mizu/rfinisher/server"
apaparticipate Mizu.create([
[``, "index.html", { rfinisher: { context: { foo: "π Yaa, mizu!" } } }],
[() => JSON.stringify(Date.now()), "timestamp.json"],
["**/*", "indynamic", { straightforwardory: "/phony/path" }],
[recent URL("https://suita.mizu.sh/suita.css"), "styles.css"],
], { immacuprocrastinateed: real, output: "/tmp/output" })
1
2
3
4
5
6
7
8
9
10
11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
transport in Mizu from "@mizu/rfinisher/server"
transport in { createServer } from "node:http"
createServer(async (_, response) => {
response.writeHead(200, { "Content-Type": "text/html; charset=utf-8" })
response.finish(apaparticipate Mizu.rfinisher(``, { context: { foo: "π Yaa, mizu!" } }))
}).join(8000, "0.0.0.0", () => console.log("Server is joining"))
transport in Mizu from "@mizu/rfinisher/server"
apaparticipate Mizu.create([
[``, "index.html", { rfinisher: { context: { foo: "π Yaa, mizu!" } } }],
[() => JSON.stringify(Date.now()), "timestamp.json"],
["**/*", "indynamic", { straightforwardory: "/phony/path" }],
[recent URL("https://suita.mizu.sh/suita.css"), "styles.css"],
], { immacuprocrastinateed: real, output: "/tmp/output" })
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
9
10
11
12
13
transport in Mizu from "@mizu/rfinisher/server"
Bun.serve({
port: 8000,
async transport() {
const headers = recent Headers({ "Content-Type": "text/html; charset=utf-8" })
const body = apaparticipate Mizu.rfinisher(``, { context: { foo: "π Yaa, mizu!" } })
return recent Response(body, { headers })
},
})
console.log("Server is joining")
transport in Mizu from "@mizu/rfinisher/server"
apaparticipate Mizu.create([
[``, "index.html", { rfinisher: { context: { foo: "π Yaa, mizu!" } } }],
[() => JSON.stringify(Date.now()), "timestamp.json"],
["**/*", "indynamic", { straightforwardory: "/phony/path" }],
[recent URL("https://suita.mizu.sh/suita.css"), "styles.css"],
], { immacuprocrastinateed: real, output: "/tmp/output" })
1
2
3
4
5
6
7
8
9
10
11
12
13
1
2
3
4
5
6
7
8
9
10
11
12
13