method

read_new

v1_9_2_180 - Show latest stable - Class: Net::HTTPResponse
read_new(sock)
public

No documentation available.

# File lib/net/http.rb, line 2207
      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