1 2 3 4 5 6 7 8 9 10
extern crate fastcgi; use std::io::Write; fn main() { fastcgi::run(|mut req| { write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!") .unwrap_or(()); }); }