pub fn send_response(mut stream: TcpStream, response: &mut Response) {
    let worked = stream.write(&response.make_sendable());
    if let Err(err) =  worked {
        println!("Error while sending response: {}",err)
    }
    stream.flush().unwrap();
}
/// Send a response to the requester
Send a response to the requester
Send a response to the requester
pub fn send_response(mut stream: TcpStream, response: &mut Response) {
    let worked = stream.write(&response.make_sendable());
    if let Err(err) =  worked {
        println!("Error while sending response: {}",err)
    }
    stream.flush().unwrap();
}
pub fn send_response ( mut stream : TcpStream , response : & mut Response ) { let worked = stream . write ( & response . make_sendable ( ) ) ; if let Err ( err ) = worked { println ! ( " " err ) } stream . flush ( ) . unwrap ( ) ; }
Send a response to the requester
Send a response to the requester
stream
TcpStream
response
&mut Response
stream
TcpStream
response
&mut Response