macro_rules! cgi_main { ( $func:expr ) => { ... }; }
Expand description
Create a main function for a CGI script
Use the cgi_main macro, with a function that takes a cgi::Request and returns a
cgi::Response.
extern crate cgi;
cgi::cgi_main! { |request: cgi::Request| -> cgi::Response {
cgi::empty_response(200)
} }