Added getting protocol and host in Uri class.