lib/redrax/client.rb
def request_raw_response(options = {})
      # Need a deep clone here
      params = options.dup
      params[:params] = options.fetch(:params, {}).dup
      params[:headers] = options.fetch(:headers, {}).dup
      
      resp = transport(params[:params].delete(:region))
        .make_request(
          params[:method], 
          params[:path],
          params[:params], 
          request_headers_with(params[:headers])
        )

      unless Array(params[:expected]).include?(resp.status)
        fail Exception, "Received status #{resp.status} which is not in #{params[:expected].inspect}"
      end 

      resp
    end
# Same as `#request` except returns the response object
# @return [Faraday::Response]
Same as `#request` except returns the response object
Same as ` #request ` except returns the response object
def request_raw_response(options = {})
      params = options.dup
      params[:params] = options.fetch(:params, {}).dup
      params[:headers] = options.fetch(:headers, {}).dup
      resp = transport(params[:params].delete(:region))
        .make_request(
          params[:method], 
          params[:path],
          params[:params], 
          request_headers_with(params[:headers])
        )
      unless Array(params[:expected]).include?(resp.status)
        fail Exception, "Received status #{resp.status} which is not in #{params[:expected].inspect}"
      end 
      resp
    end
def request_raw_response ( options = { } ) params = options . dup params [ :params ] = options . fetch ( :params , { } ) . dup params [ :headers ] = options . fetch ( :headers , { } ) . dup resp = transport ( params [ :params ] . delete ( :region ) ) . make_request ( params [ :method ] , params [ :path ] , params [ :params ] , request_headers_with ( params [ :headers ] ) ) unless Array ( params [ :expected ] ) . include? ( resp . status ) fail Exception , "Received status #{resp.status} which is not in #{params[:expected].inspect}" end resp end
Same as `#request` except returns the response object
Same as ` #request ` except returns the response object
# Need a deep clone here
None
Faraday::Response
options