BodyBuilder

A builder that adds a body to the response.

Functions

Link copied to clipboard
abstract fun body(body: Any): ServerResponse

Build the response with the given body.

Link copied to clipboard
abstract fun build(): ServerResponse

Build the response with no body.

Link copied to clipboard

Set the content type of the response.

Link copied to clipboard
abstract fun header(name: String, value: String): ServerResponse.BodyBuilder

Add the given header.