Sha256: d884bb50ef4d604864af37d96ebb97ca166d80df1a7c6d95c05a128dde6f5de1

Contents?: true

Size: 378 Bytes

Versions: 22

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module FlowcommerceSpree
  class LoggingHttpHandler < ::Io::Flow::V0::HttpClient::DefaultHttpHandler
    attr_reader :http_client, :logger

    def initialize(logger: FlowcommerceSpree.logger)
      @logger = logger
    end

    def instance(base_uri, _path)
      @http_client = LoggingHttpClient.new(base_uri, logger: @logger)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
flowcommerce_spree-0.0.22 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.21 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.20 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.19 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.18 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.17 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.16 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.15 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.14 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.13 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.12 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.11 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.10 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.9 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.8 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.7 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.6 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.5 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.4 lib/flowcommerce_spree/logging_http_handler.rb
flowcommerce_spree-0.0.3 lib/flowcommerce_spree/logging_http_handler.rb