def with_uri_credentials(uri)
      return unless uri.user && uri.password

      yield(Utils.unescape(uri.user), Utils.unescape(uri.password))
    end
def with_uri_credentials(uri)
      return unless uri.user && uri.password

      yield(Utils.unescape(uri.user), Utils.unescape(uri.password))
    end
Creates a duplicate of this Faraday::Connection.

 @api private

 @return [Faraday::Connection]
 Yields username and password extracted from a URI if they both exist.

 @param uri [URI]
 @yield [username, password] any username and password
 @yieldparam username [String] any username from URI
 @yieldparam password [String] any password from URI
 @return [void]
 @api private