Method: Net::HTTPResponse.read_new
- Defined in:
- lib/net/http.rb
.read_new(sock) ⇒ Object
:nodoc: internal use only
2005 2006 2007 2008 2009 2010 2011 2012 |
# File 'lib/net/http.rb', line 2005 def read_new(sock) #:nodoc: internal use only httpv, code, msg = read_status_line(sock) res = response_class(code).new(httpv, code, msg) each_response_header(sock) do |k,v| res.add_field k, v end res end |