respondFile

suspend fun ApplicationCall.respondFile(baseDir: File, fileName: String, configure: OutgoingContent.() -> Unit = {})(source)

Responds to a client with a contents of a file with the name fileName in the baseDir folder

Report a problem


suspend fun ApplicationCall.respondFile(file: File, configure: OutgoingContent.() -> Unit = {})(source)

Responds to a client with a contents of a file

Report a problem