Skip to main content

build_cgi_response

Function build_cgi_response 

Source
pub fn build_cgi_response(
    status: u16,
    headers: &[(String, String)],
    body: &[u8],
) -> Vec<u8> ⓘ
Expand description

A CGI response (RFC 3875 §6): Status:, the handler’s headers, a blank line, the body.