Sha256: f2105507ddd6a4873785dd15e0e09feeb115b5dfaf5b75475cc061063029e4d0

Contents?: true

Size: 683 Bytes

Versions: 14

Compression:

Stored size: 683 Bytes

Contents

module Fog
  module Rackspace
    class Storage
      class Real

        # Get headers for object
        #
        # ==== Parameters
        # * container<~String> - Name of container to look in
        # * object<~String> - Name of object to look for
        #
        def head_object(container, object)
          response = storage_request({
            :expects  => 200,
            :method   => 'GET',
            :path     => "#{CGI.escape(container)}/#{CGI.escape(object)}"
          }, false)
          response
        end

      end

      class Mock

        def head_object(container, object)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-0.3.13 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.12 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.11 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.10 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.9 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.8 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.7 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.6 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.5 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.4 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.3 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.2 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.1 lib/fog/rackspace/requests/storage/head_object.rb
fog-0.3.0 lib/fog/rackspace/requests/storage/head_object.rb