execute_cgi

Function execute_cgi 

Source
pub async fn execute_cgi<B, R>(
    request: Request<B>,
    runtime: R,
    cmd: &OsStr,
    args: &[&OsStr],
    env: CgiBuilder,
) -> Result<(Response<CgiIncoming<CgiResponseInner<<R::Child as Child>::Stdout>>>, Option<<R::Child as Child>::Stderr>, Option<ExitStatus>), Error>
where B: Body + 'static, B::Data: AsRef<[u8]> + Send + 'static, B::Error: Into<Error>, R: Runtime,
Available on crate feature client only.
Expand description

Executes a CGI program, returning the response and error streams.