def connection options = {}
      the_options = {
        :headers => {
          "Accept" => "application/json",
          "User-Agent" => Oembedr.user_agent
        },
        :url => parsed_url.host
      }.merge(options)

      Faraday.new(the_options) do |builder|
        builder.use Faraday::Request::UrlEncoded
        builder.use Faraday::Response::ParseJson
        builder.use Faraday::Response::RaiseError
        builder.use FaradayMiddleware::FollowRedirects
        builder.adapter Oembedr.adapter
      end
    end
def connection options = {}
      the_options = {
        :headers => {
          "Accept" => "application/json",
          "User-Agent" => Oembedr.user_agent
        },
        :url => parsed_url.host
      }.merge(options)

      Faraday.new(the_options) do |builder|
        builder.use Faraday::Request::UrlEncoded
        builder.use Faraday::Response::ParseJson
        builder.use Faraday::Response::RaiseError
        builder.use FaradayMiddleware::FollowRedirects
        builder.adapter Oembedr.adapter
      end
    end
Sets up a Faraday::Connection object

 @param options [optional]

 @return Faraday::Connection