Sha256: d7968d6dbcd029b2e548acba9ba4b1fdce672f8a3faf5e62194e76eccfe93aa7

Contents?: true

Size: 270 Bytes

Versions: 1

Compression:

Stored size: 270 Bytes

Contents

# frozen_string_literal: true

module BoletoSimples
  module Middleware
    class CustomHeaders < Faraday::Middleware
      def call(env)
        env[:request_headers].merge!(BoletoSimples.configuration.custom_headers)
        @app.call(env)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
boletosimples-2.1.0 lib/boletosimples/middlewares/custom_headers.rb