method
read_new
ruby latest stable - Class:
Net::HTTPResponse
read_new(sock)public
No documentation available.
# File lib/net/http/response.rb, line 28
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