Sha256: cc1e3bbfa426000772c5f873eb3c5218f7a92a573882d146f48f3c3b6c7f349c
Contents?: true
Size: 510 Bytes
Versions: 4
Compression:
Stored size: 510 Bytes
Contents
module CF::UAA module ProxyOptions def proxy_options_for(uri) ssl = uri.is_a?(URI::HTTPS) proxy_to_use = (ssl ? https_proxy : http_proxy) if proxy_to_use proxy_to_use = "proto://#{proxy_to_use}" unless proxy_to_use =~ /:\/\// proxy_uri = URI.parse(proxy_to_use) proxy_user, proxy_password = proxy_uri.userinfo.split(/:/) if proxy_uri.userinfo [proxy_uri.host, proxy_uri.port, proxy_user, proxy_password] else [] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cf-uaa-lib-3.0.0 | lib/uaa/proxy_options.rb |
cf-uaa-lib-2.1.0 | lib/uaa/proxy_options.rb |
cf-uaa-lib-2.0.1 | lib/uaa/proxy_options.rb |
cf-uaa-lib-2.0.0 | lib/uaa/proxy_options.rb |