class Async::HTTP::Protocol::HTTP11

def read_headers(headers = {})

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