Sha256: b94fe1189ec8b94bce33d7adec0cf30e397c9c78e346439ab7a6cff54b767f3d
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true require 'faraday' unless defined? Faraday module FinAppsCore module Middleware autoload :AcceptJson, 'finapps_core/middleware/request/accept_json' autoload :UserAgent, 'finapps_core/middleware/request/user_agent' autoload :NoEncodingBasicAuthentication, 'finapps_core/middleware/request/no_encoding_basic_authentication' autoload :TenantAuthentication, 'finapps_core/middleware/request/tenant_authentication' autoload :RequestId, 'finapps_core/middleware/request/request_id' autoload :CustomLogger, 'finapps_core/middleware/response/custom_logger' if Faraday::Middleware.respond_to? :register_middleware Faraday::Request.register_middleware \ accept_json: -> { AcceptJson }, user_agent: -> { UserAgent }, no_encoding_basic_authentication: -> { NoEncodingBasicAuthentication }, tenant_authentication: -> { TenantAuthentication }, request_id: -> { RequestId } Faraday::Response.register_middleware \ custom_logger: -> { CustomLogger } end end end
Version data entries
4 entries across 4 versions & 1 rubygems