commit cf461aa4ea60df92c2a02511c9b27e6b1b89843b from: Omar Polo date: Thu Dec 21 19:50:59 2023 UTC adapt to http api change commit - 0c267caa65186aa3f93b2ec49005d6e7cb239a73 commit + cf461aa4ea60df92c2a02511c9b27e6b1b89843b blob - 8b9d7a7d68e1f17ec258ff97f7170af1a302cb32 blob + ceff05ce3369d90d5c0d757365299e3d0332f864 --- shinsha.ha +++ shinsha.ha @@ -26,7 +26,7 @@ fn sighandler(sig: signal::sig, data: nullable *opaque }; 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) { @@ -42,7 +42,7 @@ fn homepage(req: *http::request, res: *http::reswriter 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")?;