ServerResponse

interface ServerResponse

A server-side response, as returned by ServerHandler.

Types

Link copied to clipboard

A builder that adds a body to the response.

Link copied to clipboard
object Companion
Link copied to clipboard

A builder that adds headers to the response.

Properties

Link copied to clipboard
abstract val body: Any?

The response body, currently only String and ByteArray are supported.

Link copied to clipboard
abstract val headers: ResponseHeaders

The response headers.

Link copied to clipboard
abstract val status: StatusCode

The response status code.