Class: Selenium::WebDriver::Remote::Http::Default Private

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

Persistent

Constant Summary

Constants inherited from Common

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Common

#call, #quit_errors

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.

Parameters:

  • open_timeout (Numeric) (defaults to: nil)
    • Open timeout to apply to HTTP client.

  • read_timeout (Numeric) (defaults to: nil)
    • Read timeout (seconds) to apply to HTTP client.


38
39
40
41
42
# File 'lib/selenium/webdriver/remote/http/default.rb', line 38

def initialize(open_timeout: nil, read_timeout: nil)
  @open_timeout = open_timeout
  @read_timeout = read_timeout
  super()
end

Instance Attribute Details

#open_timeoutObject

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_timeoutObject

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 read_timeout
  @read_timeout
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.


44
45
46
# File 'lib/selenium/webdriver/remote/http/default.rb', line 44

def close
  @http&.finish
end