Skip to main content

http_response

Function http_response 

Source
pub fn http_response(
    status: u16,
    status_text: &str,
    content_type: &str,
    body: &str,
) -> String
Expand description

Simple HTTP response builder.