Method: Aliyun::OSS::Connection#protocol

Defined in:
lib/aliyun/oss/connection.rb

#protocol(options = {}) ⇒ Object



80
81
82
83
84
85
86
87
88
89
# File 'lib/aliyun/oss/connection.rb', line 80

def protocol(options = {})
  # This always trumps http.use_ssl?
  if options[:use_ssl] == false 
    'http://'
  elsif options[:use_ssl] || http.use_ssl?
    'https://'
  else
    'http://'
  end
end