class AWS::S3::Request

def uri

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