2010-03-19 21:29:42 -04:00
|
|
|
module Fog
|
|
|
|
module Rackspace
|
2010-09-08 16:50:23 -04:00
|
|
|
class Storage
|
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)
|
2010-11-01 14:50:30 -04:00
|
|
|
response = request({
|
2010-02-27 16:39:33 -05:00
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
|
|
|
:path => "#{CGI.escape(container)}/#{CGI.escape(object)}"
|
|
|
|
}, false)
|
|
|
|
response
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|