Added a method to retrieve the content type associated with a URL.