mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@5890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
492dfc7c08
commit
a60a899eeb
2 changed files with 19 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
|||
Fri Mar 5 20:58:37 2004 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* 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.
|
||||
|
||||
Fri Mar 5 20:10:57 2004 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* ext/strscan/strscan.c: new method StringScanner#initialize_copy
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue