Read an HTTP frame

Property definitions

websocket $ WebsocketConnection :: read_http_frame
	# Read an HTTP frame
	protected fun read_http_frame(buf: Buffer): String
	do
		var ln = origin.read_line
		buf.append ln
		buf.append "\r\n"
		if buf.has_suffix("\r\n\r\n") then return buf.to_s
		return read_http_frame(buf)
	end
lib/websocket/websocket.nit:164,2--172,4