Create a RestRequest from a java.net.URL