ruby/lib/net/http
Daisuke Aritomo aa0f689bf4 [ruby/net-http] Freeze some constants to improve Ractor compatibility
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')
    }

9f0f5e4b4d
2025-05-17 00:42:12 +00:00
..
exceptions.rb [ruby/net-http] freeze rest of lib 2023-08-16 01:40:09 +00:00
generic_request.rb [ruby/net-http] No longer neccessary to call String#freeze on string literals. 2023-09-19 01:32:18 +00:00
header.rb [ruby/net-http] Update lib/net/http/header.rb 2024-05-30 09:16:15 +00:00
net-http.gemspec [ruby/net-http] Provide a 'Changelog' link on rubygems.org/gems/net-http 2025-01-06 01:19:55 +00:00
proxy_delta.rb [ruby/net-http] freeze rest of lib 2023-08-16 01:40:09 +00:00
request.rb [ruby/net-http] freeze rest of lib 2023-08-16 01:40:09 +00:00
requests.rb [ruby/net-http] Add Net::HTTP.put method 2024-05-30 09:02:32 +00:00
response.rb [ruby/net-http] Net::HTTPResponse nil checking 2023-10-05 07:11:52 +00:00
responses.rb [ruby/net-http] Freeze some constants to improve Ractor compatibility 2025-05-17 00:42:12 +00:00
status.rb Update lib/net/http/status.rb 2023-02-28 14:29:57 +09:00