class TP2::HTTP1Connection
def get_request_line(buf)
def get_request_line(buf) line = @stream.get_line(buf, MAX_REQUEST_LINE_LEN) return nil if !line m = line.match(RE_REQUEST_LINE) raise ProtocolError, "Invalid request line: #{line[0..2047].inspect}" if !m { ':method' => m[1].downcase, ':path' => m[2], ':protocol' => m[3].downcase } end