https://kotlinexpertise.com/kotlin-http4k/ sever as a function. the paper: https://monkey.org/~marius/funsrv.pdf