invoke

operator fun HttpStatusCode.invoke(configure: Response.Builder.() -> Unit = {})(source)

Shorthand to add a response using this HttpStatusCode as the key.

Report a problem

Parameters

configure

Optional DSL to configure the Response.