Sha256: 7a254c13b01d922cac5a37c05686b18ad2c677a9a53fabc4a423687fa17fad5f

Contents?: true

Size: 451 Bytes

Versions: 9

Compression:

Stored size: 451 Bytes

Contents

require "faraday"
require "hypernova/batch_url_builder"

class Hypernova::FaradayConnection
  def self.build
    configuration = Hypernova.configuration
    Faraday.new(
      request: {
        open_timeout: configuration.open_timeout,
        timeout: configuration.timeout,
      },
      url: Hypernova::BatchUrlBuilder.base_url,
    ) do |builder|
      builder.adapter(configuration.http_adapter) if configuration.http_adapter
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hypernova-2.0.0 lib/hypernova/faraday_connection.rb
hypernova-1.4.0 lib/hypernova/faraday_connection.rb
hypernova-1.3.0 lib/hypernova/faraday_connection.rb
hypernova-1.2.0 lib/hypernova/faraday_connection.rb
hypernova-1.1.0 lib/hypernova/faraday_connection.rb
hypernova-1.0.3 lib/hypernova/faraday_connection.rb
hypernova-1.0.2 lib/hypernova/faraday_connection.rb
hypernova-1.0.1 lib/hypernova/faraday_connection.rb
hypernova-1.0.0 lib/hypernova/faraday_connection.rb