Allow java.net.URL to be passed to api fns like client/get