host:port
.
# Start listening on `host:port`.
fun listen(host: String, port: Int) do
var iface = "{host}:{port}"
var vh = new VirtualHost(iface)
vh.routes.add new Route("/", self)
var fac = new HttpFactory.and_libevent
fac.config.virtual_hosts.add vh
if not quiet then
print "Launching server on http://{iface}/"
end
fac.run
end
lib/popcorn/popcorn.nit:33,2--47,4