mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 22:14:37 +02:00
![]() Freeze `Net::HTTP::SSL_IVNAMES`, `Net::HTTPResponse::CODE_CLASS_TO_OBJ`
and `Net::HTTPResponse::CODE_TO_OBJ` to improve Ractor compatibility.
This change allows the following code to work:
Ractor.new {
uri = URI.parse('http://example.com')
http = Net::HTTP.new(uri.host, uri.port)
http.open_timeout = nil
http.read_timeout = nil
http.get('/index.html')
}
|
||
---|---|---|
.. | ||
exceptions.rb | ||
generic_request.rb | ||
header.rb | ||
net-http.gemspec | ||
proxy_delta.rb | ||
request.rb | ||
requests.rb | ||
response.rb | ||
responses.rb | ||
status.rb |