Sha256: 9953b8f34f884ea14687f22537e8c1c6b9ccad7a6ced8bde518297c60136729d
Contents?: true
Size: 1.15 KB
Versions: 61
Compression:
Stored size: 1.15 KB
Contents
module Fog module Storage class HP class Real # List number of objects and total bytes stored for a shared container # # ==== Parameters # * shared_container_url<~String> - Url of the shared container # # ==== Returns # * response<~Excon::Response>: # * headers<~Hash>: # * 'X-Container-Object-Count'<~String> - Count of containers # * 'X-Container-Bytes-Used'<~String> - Bytes used def head_shared_container(shared_container_url) # split up the shared container url uri = URI.parse(shared_container_url) path = uri.path response = shared_request( :expects => 204, :method => 'HEAD', :path => path, :query => {'format' => 'json'} ) response end end class Mock # :nodoc:all def head_shared_container(shared_container_url) response = get_shared_container(shared_container_url) response.body = nil response.status = 204 response end end end end end
Version data entries
61 entries across 61 versions & 6 rubygems