@api private
@return [bucket] S3 bucket name
@api private
@return [String] S3 object key
# File lib/aws/s3/request.rb, line 34 def host path_style? ? @host : "#{bucket}.#{@host}" end
# 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
# 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