1. Add expects to handle errors 2. Use BufReader with read_line, instead of read_to_string, since it prevents the communication from hanging after the read
1. Add expects to handle errors
2. Use BufReader with read_line, instead of read_to_string, since it
prevents the communication from hanging after the read

Note: had to clone the stream, since BufRead gives ownership to it
Note: ostream.shutdown fails, not sure why

bourem/naiverusthttpserver