rust-fastcgi/examples/hello.rs

11 lines
198 B
Rust

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(());
});
}