[−][src]Function hyper_cgi::do_cgi
pub async fn do_cgi(
req: Request<Body>,
cmd: Command
) -> (Response<Body>, Vec<u8>)
do_cgi is an async function that takes an hyper request and a CGI compatible command, and passes the request to be executed to the command. It then returns an hyper response and the stderr output of the command.