def parse_response(response)
      if response.headers['Content-Type'] == "application/json"
        JSON.parse(response.body) rescue nil
      else
        response.body
      end
    end
def parse_response(response)
      if response.headers['Content-Type'] == "application/json"
        JSON.parse(response.body) rescue nil
      else
        response.body
      end
    end
Parse response. If the respons is JSON, returns a Hash representation.
 Otherwise returns the raw body.

 @param [Excon::Response]
 @return [Hash,String]