method

read_status_line

v1_9_3_392 - Show latest stable - Class: Net::HTTPResponse
read_status_line(sock)
private

No documentation available.

# File lib/net/http.rb, line 2561
      def read_status_line(sock)
        str = sock.readline
        m = /\AHTTP(?:\/(\d+\.\d+))?\s+(\d\d\d)\s*(.*)\z/n.match(str) or
          raise HTTPBadResponse, "wrong status line: #{str.dump}"
        m.captures
      end