Parses a URL in string form into an Endpoint object.

interface UrlParser ((url) => Endpoint)