response

fun response(statusCode: Int, configure: Response.Builder.() -> Unit)(source)

Adds a response for the given HTTP statusCode.

Report a problem

Parameters

statusCode

The HTTP status code as an Int.

configure

DSL to configure the Response.