Function send_response

Source
pub fn send_response(
    status: StatusCode,
    headers: Option<HashMap<String, String>>,
    body: Vec<u8>,
)
Expand description

Send an HTTP response to an incoming HTTP request (HttpServerRequest::Http).