Sha256: dd8c961d164f0d3b3a5c39f55f4fd578d4a865c1195229380948ad44b0023ab8
Contents?: true
Size: 772 Bytes
Versions: 12
Compression:
Stored size: 772 Bytes
Contents
# frozen_string_literal: true module Fog module Storage class Aliyun class Real # Get headers for object # # ==== Parameters # * 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 ) ret end end end end end
Version data entries
12 entries across 10 versions & 2 rubygems