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( = {}) # This always trumps http.use_ssl? if [:use_ssl] == false 'http://' elsif [:use_ssl] || http.use_ssl? 'https://' else 'http://' end end |