Skip to content

Conversation

BurdetteLamar
Copy link
Member

No description provided.

@BurdetteLamar BurdetteLamar added the documentation Improvements or additions to documentation label Sep 4, 2025
Copy link
Contributor

@jeremyevans jeremyevans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking more into this, I see the following in net/http.rb:

  HTTPSession = HTTP
  deprecate_constant :HTTPSession

Not sure why the rdoc shows Net::HTTPSession on the page for Net::HTTP (https://docs.ruby-lang.org/en/master/Net/HTTP.html).

@hsbt @nurse Can we remove Net::HTTPSession now, or should we wait until after the release of Ruby 3.5? I think that would fix the issue.

@hsbt
Copy link
Member

hsbt commented Sep 5, 2025

@hsbt @nurse Can we remove Net::HTTPSession now, or should we wait until after the release of Ruby 3.5? I think that would fix the issue.

+1, It's time to remove that.

@nurse
Copy link
Member

nurse commented Sep 12, 2025

Net::HTTPSession is kept for compatibility discussed on https://bugs.ruby-lang.org/issues/6889 and https://bugs.ruby-lang.org/issues/20900
The constant is moved into http.rb at 8e98fbdd19e49e6972d1eda1523b699b99a825f6.
Since the deprecation warning is introduced by 3d8e1ee40f4aa780243458ee0e527807b948c8fd, it's ok to remove.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants