lib/nipap/client.rb
def request_setup()
      Proc.new do |request|
        request.headers[:authorization] = basic_auth_header
        request.headers[:content_type] = 'application/json; charset=UTF-8'
        request.headers[:accept] = 'application/json; charset=UTF-8'
      end
    end
# Returns a proc that can be used to setup the Faraday::Request headers
#
# @return [Proc]
Returns a proc that can be used to setup the Faraday::Request headers
Returns a proc that can be used to setup the Faraday :: Request headers
def request_setup()
      Proc.new do |request|
        request.headers[:authorization] = basic_auth_header
        request.headers[:content_type] = 'application/json; charset=UTF-8'
        request.headers[:accept] = 'application/json; charset=UTF-8'
      end
    end
def request_setup ( ) Proc . new do | request | request . headers [ :authorization ] = basic_auth_header request . headers [ :content_type ] = 'application/json; charset=UTF-8' request . headers [ :accept ] = 'application/json; charset=UTF-8' end end
Returns a proc that can be used to setup the Faraday::Request headers
Returns a proc that can be used to setup the Faraday :: Request headers
None
Proc