# File lib/aws/core/http/request.rb, line 92 def endpoint scheme = use_ssl ? 'https' : 'http' port = case scheme when 'https' then self.port == 443 ? '' : ":#{self.port}" when 'http' then self.port == 80 ? '' : ":#{self.port}" end "#{scheme}://#{host}#{port}" end