Method: Gem::Net::HTTP.default_configuration

Defined in:
lib/rubygems/vendor/net-http/lib/net/http.rb

.default_configurationObject

Allows to set the default configuration that will be used when creating a new connection.

Example:

Gem::Net::HTTP.default_configuration = {
  read_timeout: 1,
  write_timeout: 1
}
http = Gem::Net::HTTP.new(hostname)
http.open_timeout   # => 60
http.read_timeout   # => 1
http.write_timeout  # => 1


1148
1149
1150
# File 'lib/rubygems/vendor/net-http/lib/net/http.rb', line 1148

def default_configuration
  @default_configuration
end