```ruby
module Webpagetest
  # Configures and performs connection requests
  module Connection

    ENDPOINT = 'http://www.webpagetest.org/'

    def get_connection(options = nil)
      options = Hashie::Mash.new( {
        request: :url_encoded,
        response: :logger,
        adapter: Faraday.default_adapter,        
      } ) if options.nil?
      
      url = options.url || ENDPOINT

      connection = Faraday.new(url: url) do |faraday|
        faraday.request  options.request
        faraday.response options.response
        faraday.adapter  options.adapter
      end
    end
  end
end```

Add option to override faraday options
user
```ruby
module Webpagetest
  # Configures and performs connection requests
  module Connection

    ENDPOINT = 'http://www.webpagetest.org/'
    FARADAY_OPTIONS = {
      request: :url_encoded,
      response: :logger,
      adapter: Faraday.default_adapter,
    }

    def get_connection(options = nil)
      options = Hashie::Mash.new(FARADAY_OPTIONS) if options.nil?

      url = options.url || ENDPOINT

      connection = Faraday.new(url: url) do |faraday|
        faraday.request  options.request
        faraday.response options.response unless options.response.nil?
        faraday.adapter  options.adapter
      end
    end
  end
end
```
assistant