MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / net_http_start

Method net_http_start

rb/lib/selenium/server.rb:126–136  ·  view source on GitHub ↗
(address, &block)

Source from the content-addressed store, hash-verified

124 end
125
126 def net_http_start(address, &block)
127 http_proxy = ENV.fetch('http_proxy', nil) || ENV.fetch('HTTP_PROXY', nil)
128 if http_proxy
129 http_proxy = "http://#{http_proxy}" unless http_proxy.start_with?('http://')
130 uri = URI.parse(http_proxy)
131
132 Net::HTTP.start(address, nil, uri.host, uri.port, &block)
133 else
134 Net::HTTP.start(address, use_ssl: true, &block)
135 end
136 end
137
138 def download_server(uri, destination)
139 net_http_start('github-releases.githubusercontent.com') do |http|

Callers 1

SeleniumClass · 0.80

Calls 4

fetchMethod · 0.80
startMethod · 0.65
parseMethod · 0.45
portMethod · 0.45

Tested by

no test coverage detected