respondResource

suspend fun ApplicationCall.respondResource(resourcePath: String, configure: OutgoingContent.() -> Unit = {})(source)
suspend fun ApplicationCall.respondResource(resourcePath: String, resourcePackage: String, configure: OutgoingContent.() -> Unit = {})(source)

Responds to a client with contents of a resource loaded from the classpath.

Report a problem