Function run
Source pub fn run<F>(handler: F)
Expand description
Runs as a FastCGI process with the given handler.
Available under Unix only. If you are using Windows, use run_tcp instead.
5fn main() {
6 fastcgi::run(|mut req| {
7 write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!")
8 .unwrap_or(());
9 });
10}