http_request_parser
Converts raw request to struct Request with it's properties
The Request properties are:
methodof typeStringpathof typeStringversionof typef32headersof typeVec<String>bodyof typeString
Parse the raw string to Request
for stream in listener.incoming
And now you can use Request properties to respond
let mut response = Stringnew;
if request.path == "/" else
tcp_stream.write_all.unwrap
}