contentType
fun Route.contentType(contentType: <ERROR CLASS>, build: Route.() -> Unit): Route
Content copied to clipboard
Builds a route to match requests with the HttpHeaders.ContentType header matching the specified contentType.
Builds a route to match requests with the HttpHeaders.ContentType header matching the specified contentType.