    # File lib/fog/atmos/storage.rb, line 107
            def request(params, &block)
              req_path = params[:path]
              # Force set host and port
              params.merge!({
                              :host     => @storage_host,
                              :path     => "#{@api_path}/rest/#{params[:path]}",
                            })
              # Set default method and headers
              params = {:method => 'GET', :headers => {}}.merge params

              params[:headers]["Content-Type"] ||= "application/octet-stream"

              # Add request date
              params[:headers]["date"] = Time.now().httpdate()
              params[:headers]["x-emc-uid"] = @storage_token

              # Build signature string
              signstring = ""
              signstring += params[:method]
              signstring += "\n"
              signstring += params[:headers]["Content-Type"]
              signstring += "\n"
              if( params[:headers]["range"] )
                signstring += params[:headers]["range"]
              end
              signstring += "\n"
              signstring += params[:headers]["date"]
              signstring += "\n"

              signstring += "/rest/" + URI.unescape( req_path ).downcase
              query_str = params[:query].map{|k,v| "#{k}=#{v}"}.join('&')
              signstring += '?' + query_str unless query_str.empty?
              signstring += "\n"

              customheaders = {}
              params[:headers].each { |key,value|
                case key
                when 'x-emc-date', 'x-emc-signature'
                  #skip
                when /^x-emc-/
                  customheaders[ key.downcase ] = value
                end
              }
              header_arr = customheaders.sort()

              header_arr.each { |key,value|
                # Values are lowercase and whitespace-normalized
                signstring += key + ":" + value.strip.chomp.squeeze( " " ) + "\n"
              }

              digest = @hmac.sign(signstring.chomp())
              signature = Base64.encode64( digest ).chomp()
              params[:headers]["x-emc-signature"] = signature

              begin
                response = @connection.request(params, &block)
              rescue Excon::Errors::HTTPStatusError => error
                raise case error
                when Excon::Errors::NotFound
                  Fog::Storage::Atmos::NotFound.slurp(error)
                else
                  error
                end
              end
              unless response.body.empty?
                if params[:parse]
                  document = Fog::ToHashDocument.new
                  parser = Nokogiri::XML::SAX::PushParser.new(document)
                  parser << response.body
                  parser.finish
                  response.body = document.body
                end
              end
              response
            end