headers

Entry point for header configuration. Supports two syntaxes:

Lambda block — for full ResponseHeaders access:

headers {
append(HttpHeaders.Location, "/things/$id")
}

+= shorthand — for simple name/value pairs:

headers += "Foo" to "bar"