commit - 0c267caa65186aa3f93b2ec49005d6e7cb239a73
commit + cf461aa4ea60df92c2a02511c9b27e6b1b89843b
blob - 8b9d7a7d68e1f17ec258ff97f7170af1a302cb32
blob + ceff05ce3369d90d5c0d757365299e3d0332f864
--- shinsha.ha
+++ shinsha.ha
};
let n = 0i;
-fn homepage(req: *http::request, res: *http::reswriter) (void | http::error) = {
+fn homepage(req: *http::request, res: *http::reswriter) (void | io::error) = {
// don't do this at home, it's just to test re-entering.
if (n == 0) {
fmt::fprintfln(res, "シンシャです。")?;
};
-fn page2(req: *http::request, res: *http::reswriter) (void | http::error) = {
+fn page2(req: *http::request, res: *http::reswriter) (void | io::error) = {
http::reply(req, res, 200, "OK")?;
http::header(res, "Content-Type", "text/plain")?;
fmt::fprintln(res, "Pagina 2")?;