diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-02 02:05:35 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-02 02:05:35 +0000 |
| commit | 769d95f8f494503b2827004114d386078e1adc96 (patch) | |
| tree | 6ce020088bef8ad798c1c8e0077549b4ef169369 /lib | |
| parent | abe26307ca356ff31192d8e9434970b2fdf51123 (diff) | |
| download | ruby-769d95f8f494503b2827004114d386078e1adc96.tar.gz ruby-769d95f8f494503b2827004114d386078e1adc96.tar.xz ruby-769d95f8f494503b2827004114d386078e1adc96.zip | |
* lib/net/http.rb: set old class aliases for backward compatibility. [ruby-talk:74863]
* lib/net/protocol.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/net/http.rb | 8 | ||||
| -rw-r--r-- | lib/net/protocol.rb | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 65424bd61..e037f4b36 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1738,9 +1738,15 @@ module Net end - # for backward compatibility + class HTTP + ProxyMod = ProxyDelta + end + module NetPrivate + HTTPRequest = ::Net::HTTPRequest + end + HTTPInformationCode = HTTPInformation HTTPSuccessCode = HTTPSuccess HTTPRedirectionCode = HTTPRedirection diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index b58eec947..b3ac5e509 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -449,4 +449,10 @@ module Net end + + # For backward compatibility + module NetPrivate + Socket = ::Net::InternetMessageIO + end + end # module Net |
