resource

fun resource(predicate: RequestPredicate, resource: Resource, headersConsumer: (Resource, HttpHeaders) -> Unit = { _, _ -> })

Route requests that match the given predicate to the given resource.

Since

6.1.4

See also