Sha256: 2f40908ef66cbb6b9b2e5d2d0428651a4a402aba0a916428a76365560987599b
Contents?: true
Size: 923 Bytes
Versions: 5
Compression:
Stored size: 923 Bytes
Contents
module Fog module Storage class Dtdream 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(object, options={}) bucket = options[:bucket] bucket ||= @aliyun_oss_bucket location = get_bucket_location(bucket) endpoint = "http://"+location+".aliyuncs.com" resource = bucket+'/'+object ret = request( :expects => [200, 404], :method => 'HEAD', :path => object, :bucket => bucket, :resource => resource, :endpoint => endpoint ) return ret end end class Mock def head_object(object, options={}) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems