Crates.io | rocket-cgi |
lib.rs | rocket-cgi |
version | 0.2.1 |
source | src |
created_at | 2022-12-29 03:00:19.289996 |
updated_at | 2022-12-31 16:29:16.287314 |
description | Simple CGI (RFC 3875) handler for Rocket |
homepage | |
repository | https://github.com/the10thWiz/rocket-cgi |
max_upload_size | |
id | 747117 |
size | 76,887 |
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.
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 as soon as possible. If the process closes stdout, the header lines have been printed for a HEAD request, or a redirect was sent will all cause the process to be killed.
This also don't implement several optional parts of the spec. For example, extension methods (even just PUT & DELETE) are not supported.