class AWS::S3::Request
@api private
Attributes
bucket[RW]
@return [bucket] S3
bucket name
force_path_style[RW]
@api private
key[RW]
@return [String] S3
object key
Public Instance Methods
host()
click to toggle source
# File lib/aws/s3/request.rb, line 34 def host path_style? ? @host : "#{bucket}.#{@host}" end
path_style?()
click to toggle source
# File lib/aws/s3/request.rb, line 38 def path_style? if force_path_style true else Client.path_style_bucket_name?(bucket) end end
uri()
click to toggle source
# File lib/aws/s3/request.rb, line 46 def uri parts = [] parts << bucket if bucket and path_style? parts << escape_path(key) if key path = '/' + parts.join('/') querystring = url_encoded_params uri = '' uri << path uri << "?#{querystring}" if querystring uri end