Simple standards compliant CGI handler for Rocket. This is still a WIP, and will remain so until the security todo items have been handled.
Simply mount a directory with a CGI handler.
rust
rocket().mount("/cgi", CGIDir::new("./cgi"))
cgi
data limit for post requests (1 MiB default)This CGI handler will automatically attempt to kill the script when stdout has been closed. More most usecases this is fine, since the script will close stdout by exiting.
This also don't implement several optional parts of the spec. For example, extension methods (even just PUT & DELETE) are not supported.