lib/redrax/transport.rb
# Hide the Faraday http request semantics behind this method
# TODO: We're going to want to wrap errors here as well
Hide the Faraday http request semantics behind this method
TODO: We're going to want to wrap errors here as well
Hide the Faraday http request semantics behind this method TODO : We ' re going to want to wrap errors here as well
def make_request(method, path, params = {}, headers = {})
    if [:post, :put, :patch].include?(method) 
      send(method) do |r|
        r.headers.merge!(headers)
        r.url path
        r.body = params.delete(:body).to_json
      end
    else
      send(method, path, params, headers)
    end
  end
def make_request ( method , path , params = { } , headers = { } ) if [ :post , :put , :patch ] . include? ( method ) send ( method ) do | r | r . headers . merge! ( headers ) r . url path r . body = params . delete ( :body ) . to_json end else send ( method , path , params , headers ) end end
Hide the Faraday http request semantics behind this method
TODO: We're going to want to wrap errors here as well
Hide the Faraday http request semantics behind this method TODO : We ' re going to want to wrap errors here as well
method
path
params
headers