Sha256: d3f33cc0c2062d3968865b34a19865f0b491afdae6f713346d93fb22df219a55
Contents?: true
Size: 1.14 KB
Versions: 39
Compression:
Stored size: 1.14 KB
Contents
module Fog module Storage class Rackspace module Common # Get an expiring object http url from Cloud Files # # ==== Parameters # * container<~String> - Name of container containing object # * object<~String> - Name of object to get expiring url for # * expires<~Time> - An expiry time for this url # # ==== Returns # * response<~Excon::Response>: # * body<~String> - url for object # @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404 # @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400 # @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500 # @raise [Fog::Storage::Rackspace::ServiceError] # ==== See Also # http://docs.rackspace.com/files/api/v1/cf-devguide/content/Create_TempURL-d1a444.html def get_object_http_url(container, object, expires, options = {}) get_object_https_url(container, object, expires, options.merge(:scheme => 'http')) end end class Real include Common end class Mock include Common end end end end
Version data entries
39 entries across 37 versions & 6 rubygems