dave
01/20/2021, 8:36 PMfun `disk cache!`(dir: String): Http4kServer {
val cache = ReadWriteCache.Disk(dir)
return ProxyHost(Https)
.then(RecordTo(cache))
.then(ServeCachedFrom(cache))
.then(ReportHttpTransaction { println(it.request.uri) })
.then(JavaHttpClient())
.asServer(KtorCIO())
.start()
}