2010-03-19 21:29:42 -04:00
|
|
|
module Fog
|
2011-06-15 17:26:43 -04:00
|
|
|
module Storage
|
|
|
|
class Rackspace
|
2010-03-19 21:29:42 -04:00
|
|
|
class Real
|
2010-02-27 16:39:33 -05:00
|
|
|
|
|
|
|
# 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)
|
2011-06-15 17:26:43 -04:00
|
|
|
request({
|
2010-02-27 16:39:33 -05:00
|
|
|
:expects => 200,
|
2011-03-29 16:58:32 -04:00
|
|
|
:method => 'HEAD',
|
2011-03-23 20:54:37 -04:00
|
|
|
:path => "#{URI.escape(container)}/#{URI.escape(object)}"
|
2010-02-27 16:39:33 -05:00
|
|
|
}, false)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|