method
read_new
read_new(sock)
public
Hide source
# File lib/net/http.rb, line 2008 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