Skip to main content

respond

Function respond 

Source
fn respond(stream: &mut TcpStream, code: u16, content_type: &str, body: &[u8])
Expand description

Write a complete HTTP/1.1 response and close the connection.