Class: Selenium::WebDriver::Remote::Http::Persistent Private
- 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
Instance Method Summary collapse
- #close ⇒ Object private
-
#initialize(open_timeout: nil, read_timeout: nil) ⇒ Persistent
constructor
private
A new instance of Persistent.
Methods inherited from Common
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
#close ⇒ Object
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 |