Write data as CSV and set the right content type header.

Property definitions

popcorn :: pop_handlers $ HttpResponse :: csv
	# Write data as CSV and set the right content type header.
	fun csv(csv: nullable CsvDocument, status: nullable Int) do
		header["Content-Type"] = media_types["csv"].as(not null)
		if csv == null then
			send(null, status)
		else
			send(csv.write_to_string, status)
		end
	end
lib/popcorn/pop_handlers.nit:451,2--459,4