Class: LaunchDarkly::Impl::DataSystem::HttpConfigOptions Private
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::DataSystem::HttpConfigOptions
- Defined in:
- lib/ldclient-rb/impl/data_system/http_config_options.rb
Overview
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.
HttpConfigOptions contains HTTP connection configuration settings. This class is created by data source builders and passed to v2 Requesters/DataSources.
Constant Summary collapse
- DEFAULT_READ_TIMEOUT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Generic HTTP defaults - base URIs live in the respective builders
10- DEFAULT_CONNECT_TIMEOUT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
2
Instance Attribute Summary collapse
- #base_uri ⇒ Object readonly private
- #connect_timeout ⇒ Object readonly private
- #read_timeout ⇒ Object readonly private
- #socket_factory ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(base_uri:, socket_factory: nil, read_timeout: nil, connect_timeout: nil) ⇒ HttpConfigOptions
constructor
private
A new instance of HttpConfigOptions.
Constructor Details
#initialize(base_uri:, socket_factory: nil, read_timeout: nil, connect_timeout: nil) ⇒ HttpConfigOptions
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 HttpConfigOptions.
23 24 25 26 27 28 |
# File 'lib/ldclient-rb/impl/data_system/http_config_options.rb', line 23 def initialize(base_uri:, socket_factory: nil, read_timeout: nil, connect_timeout: nil) @base_uri = base_uri @socket_factory = socket_factory @read_timeout = read_timeout || DEFAULT_READ_TIMEOUT @connect_timeout = connect_timeout || DEFAULT_CONNECT_TIMEOUT end |
Instance Attribute Details
#base_uri ⇒ Object (readonly)
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.
15 16 17 |
# File 'lib/ldclient-rb/impl/data_system/http_config_options.rb', line 15 def base_uri @base_uri end |
#connect_timeout ⇒ Object (readonly)
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.
15 16 17 |
# File 'lib/ldclient-rb/impl/data_system/http_config_options.rb', line 15 def connect_timeout @connect_timeout end |
#read_timeout ⇒ Object (readonly)
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.
15 16 17 |
# File 'lib/ldclient-rb/impl/data_system/http_config_options.rb', line 15 def read_timeout @read_timeout end |
#socket_factory ⇒ Object (readonly)
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.
15 16 17 |
# File 'lib/ldclient-rb/impl/data_system/http_config_options.rb', line 15 def socket_factory @socket_factory end |