diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-05 11:59:09 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-05 11:59:09 +0000 |
| commit | 0377f5e28ddc0413e72f9280b3c3e7873969fb41 (patch) | |
| tree | 3eb51c4dd6fe6cdc6cf7e1e576ef7e5b8a36d62a /lib/net | |
| parent | 798ce2372ba60918a5b7427c1bc8676fc727f9de (diff) | |
| download | ruby-0377f5e28ddc0413e72f9280b3c3e7873969fb41.tar.gz ruby-0377f5e28ddc0413e72f9280b3c3e7873969fb41.tar.xz ruby-0377f5e28ddc0413e72f9280b3c3e7873969fb41.zip | |
* lib/net/http.rb: Net::HTTPResponse#response is obsolete. [ruby-core:02592]
* lib/net/http.rb: Net::HTTPResponse#header is obsolete.
* lib/net/http.rb: Net::HTTPResponse#read_header is obsolete.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
| -rw-r--r-- | lib/net/http.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index b0334a275..90b449538 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1640,11 +1640,19 @@ module Net # :nodoc: # def response #:nodoc: + warn "#{caller(1)[0]}: warning: HTTPResponse#response is obsolete" if $VERBOSE self end - alias header response #:nodoc: - alias read_header response #:nodoc: + def header #:nodoc: + warn "#{caller(1)[0]}: warning: HTTPResponse#header is obsolete" if $VERBOSE + self + end + + def read_header #:nodoc: + warn "#{caller(1)[0]}: warning: HTTPResponse#read_header is obsolete" if $VERBOSE + self + end # # body |
