module Faraday::Utils
def URI(url)
url - A String or URI.
Normalize URI() behavior across Ruby versions
def URI(url) if url.respond_to?(:host) url elsif url.respond_to?(:to_str) default_uri_parser.call(url) else raise ArgumentError, "bad argument (expected URI object or URI string)" end end