1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/s3/head_object.rb
2009-07-13 19:14:59 -07:00

18 lines
338 B
Ruby

module Fog
module AWS
class S3
# Get headers for an object from S3
# FIXME: docs
def head_object(bucket_name, object_name)
request({
:headers => {},
:host => "#{bucket_name}.#{@host}",
:method => 'HEAD',
:path => object_name
})
end
end
end
end