class Async::HTTP::Protocol::HTTP11

def read_headers(headers = Headers.new)

def read_headers(headers = Headers.new)
	# Parsing headers:
	each_line do |line|
		if line =~ /^([a-zA-Z\-]+):\s*(.+?)\s*$/
			headers[$1] = $2
		else
			break
		end
	end
	
	return headers
end