Sha256: 573c5816dc78406a87e1e7aa6ca587a32373adc18a70752fdf9ad39460473f41

Contents?: true

Size: 588 Bytes

Versions: 14

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true
require 'faraday' unless defined? Faraday

module FinApps
  module Middleware
    autoload :AcceptJson, 'finapps/middleware/request/accept_json'
    autoload :UserAgent, 'finapps/middleware/request/user_agent'
    autoload :TenantAuthentication, 'finapps/middleware/request/tenant_authentication'

    if Faraday::Middleware.respond_to? :register_middleware
      Faraday::Request.register_middleware \
        accept_json: -> { AcceptJson },
        user_agent: -> { UserAgent },
        tenant_authentication: -> { TenantAuthentication }
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
finapps-2.0.24 lib/finapps/middleware/middleware.rb
finapps-2.0.23 lib/finapps/middleware/middleware.rb
finapps-2.0.22 lib/finapps/middleware/middleware.rb
finapps-2.0.21 lib/finapps/middleware/middleware.rb
finapps-2.0.20 lib/finapps/middleware/middleware.rb
finapps-2.0.19 lib/finapps/middleware/middleware.rb
finapps-2.0.17 lib/finapps/middleware/middleware.rb
finapps-2.0.16 lib/finapps/middleware/middleware.rb
finapps-2.0.15 lib/finapps/middleware/middleware.rb
finapps-2.0.14 lib/finapps/middleware/middleware.rb
finapps-2.0.13 lib/finapps/middleware/middleware.rb
finapps-2.0.12 lib/finapps/middleware/middleware.rb
finapps-2.0.11 lib/finapps/middleware/middleware.rb
finapps-2.0.10 lib/finapps/middleware/middleware.rb