class TP2::HTTP1Connection

def read(len, buf = nil, raise_on_eof = true)

def read(len, buf = nil, raise_on_eof = true)
  str = @stream.get_string(buf, len)
  raise ProtocolError, 'Missing data' if !str && raise_on_eof
  str
end