Class: Selenium::WebDriver::Remote::Http::Curb Deprecated

Inherits:
Common
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Common

#call, #close

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

#timeoutObject

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_errorsObject



45
46
47
# File 'lib/selenium/webdriver/remote/http/curb.rb', line 45

def quit_errors
  [Curl::Err::RecvError] + super
end