Class: Selenium::WebDriver::Remote::Http::Persistent Private

Inherits:
Default
  • Object
show all
Defined in:
lib/selenium/webdriver/remote/http/persistent.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary

Constants inherited from Common

Common::CONTENT_TYPE, Common::DEFAULT_HEADERS, Common::MAX_REDIRECTS

Instance Attribute Summary

Attributes inherited from Default

#open_timeout, #read_timeout

Instance Method Summary collapse

Methods inherited from Common

#call, #quit_errors

Constructor Details

#initialize(open_timeout: nil, read_timeout: nil) ⇒ Persistent

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Persistent.


28
29
30
31
32
# File 'lib/selenium/webdriver/remote/http/persistent.rb', line 28

def initialize(open_timeout: nil, read_timeout: nil)
  WebDriver.logger.deprecate("Selenium::WebDriver::Remote::Http::Persistent",
                             id: :http_persistent) { "The default HTTP client now uses persistence." }
  super
end

Instance Method Details

#closeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


34
35
36
# File 'lib/selenium/webdriver/remote/http/persistent.rb', line 34

def close
  @http&.shutdown
end