Class: Selenium::WebDriver::Remote::Http::Curb Deprecated
- Defined in:
- lib/selenium/webdriver/remote/http/curb.rb
Overview
Deprecated.
Subclass Common to implement a custom HTTP client.
An alternative to the default Net::HTTP client.
Constant Summary
Constants inherited from Common
Selenium::WebDriver::Remote::Http::Common::BINARY_ENCODINGS, Selenium::WebDriver::Remote::Http::Common::CONTENT_TYPE, Selenium::WebDriver::Remote::Http::Common::DEFAULT_HEADERS, Selenium::WebDriver::Remote::Http::Common::MAX_REDIRECTS
Instance Attribute Summary collapse
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(timeout: nil) ⇒ Curb
constructor
A new instance of Curb.
- #quit_errors ⇒ Object
Methods inherited from Common
Constructor Details
#initialize(timeout: nil) ⇒ Curb
Returns a new instance of Curb.
35 36 37 38 39 40 41 42 43 |
# File 'lib/selenium/webdriver/remote/http/curb.rb', line 35 def initialize(timeout: nil) WebDriver.logger.deprecate( 'Selenium::WebDriver::Remote::Http::Curb', 'a custom subclass of Selenium::WebDriver::Remote::Http::Common', id: :curb ) @timeout = timeout super() end |
Instance Attribute Details
#timeout ⇒ Object
Returns the value of attribute timeout.
33 34 35 |
# File 'lib/selenium/webdriver/remote/http/curb.rb', line 33 def timeout @timeout end |
Instance Method Details
#quit_errors ⇒ Object
45 46 47 |
# File 'lib/selenium/webdriver/remote/http/curb.rb', line 45 def quit_errors [Curl::Err::RecvError] + super end |