DefaultHeaders

A plugin that adds the standard Date and Server HTTP headers into each response and allows you to:

  • add additional default headers;

  • override the Server header.

The example below shows how to add a custom header:

install(DefaultHeaders) {
header("Custom-Header", "Some value")
}

You can learn more from Default headers.