Class: Selenium::WebDriver::Remote::Http::Default Private
- Defined in:
- lib/selenium/webdriver/remote/http/default.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.
Direct Known Subclasses
Constant Summary
Constants inherited from Common
Common::CONTENT_TYPE, Common::DEFAULT_HEADERS, Common::MAX_REDIRECTS
Instance Attribute Summary collapse
- #open_timeout ⇒ Object private
- #proxy ⇒ Object writeonly private
- #read_timeout ⇒ Object private
Attributes inherited from Common
Instance Method Summary collapse
- #close ⇒ Object private
-
#initialize(open_timeout: nil, read_timeout: nil) ⇒ Default
constructor
private
Initializes object.
-
#timeout=(value) ⇒ Object
deprecated
private
Deprecated.
Please set the specific desired timeout #read_timeout or #open_timeout directly.
Methods inherited from Common
Constructor Details
#initialize(open_timeout: nil, read_timeout: nil) ⇒ Default
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.
Initializes object. Warning: Setting #open_timeout to non-nil values will cause a separate thread to spawn. Debuggers that freeze the process will not be able to evaluate any operations if that happens.
39 40 41 42 |
# File 'lib/selenium/webdriver/remote/http/default.rb', line 39 def initialize(open_timeout: nil, read_timeout: nil) @open_timeout = open_timeout @read_timeout = read_timeout end |
Instance Attribute Details
#open_timeout ⇒ 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.
31 32 33 |
# File 'lib/selenium/webdriver/remote/http/default.rb', line 31 def open_timeout @open_timeout end |
#proxy=(value) ⇒ 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.
29 30 31 |
# File 'lib/selenium/webdriver/remote/http/default.rb', line 29 def proxy=(value) @proxy = value end |
#read_timeout ⇒ 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.
32 33 34 |
# File 'lib/selenium/webdriver/remote/http/default.rb', line 32 def read_timeout @read_timeout 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.
53 54 55 |
# File 'lib/selenium/webdriver/remote/http/default.rb', line 53 def close @http&.finish end |
#timeout=(value) ⇒ 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.
Please set the specific desired timeout #read_timeout or #open_timeout directly.
Maintaining backward compatibility.
47 48 49 50 51 |
# File 'lib/selenium/webdriver/remote/http/default.rb', line 47 def timeout=(value) WebDriver.logger.deprecate ':timeout=', '#read_timeout= and #open_timeout=' self.open_timeout = value self.read_timeout = value end |