HeadersBuilder

A builder that adds headers to the response.

Inheritors

Functions

Link copied to clipboard
abstract fun build(): ServerResponse

Build the response with no body.

Link copied to clipboard
abstract fun contentType(contentType: MediaType): B

Set the content type of the response.

Link copied to clipboard
abstract fun header(name: String, value: String): B
abstract fun header(name: ResponseHeaderName, value: String): B

Add the given header.