class Selenium::WebDriver::Remote::Http::Persistent
@api private
Public Instance Methods
close()
click to toggle source
# File lib/selenium/webdriver/remote/http/persistent.rb, line 11 def close @http.shutdown if @http end
Private Instance Methods
new_http_client()
click to toggle source
# File lib/selenium/webdriver/remote/http/persistent.rb, line 17 def new_http_client proxy = nil if @proxy unless @proxy.respond_to?(:http) && url = @proxy.http raise Error::WebDriverError, "expected HTTP proxy, got #{@proxy.inspect}" end proxy = URI.parse(url) end Net::HTTP::Persistent.new "webdriver", proxy end
response_for(request)
click to toggle source
# File lib/selenium/webdriver/remote/http/persistent.rb, line 30 def response_for(request) http.request server_url, request end