#!/usr/bin/env fun /* * Minimal example using KCGI wrapper. * Run under a CGI/FastCGI environment where kcgi can parse the request. */ #include cgi = KCGI() name = cgi.get_or("name", "Fun") body = "

Hello, " + to_string(name) + "!

" cgi.reply(200, "text/html; charset=utf-8", body)