Closed
Description
Expected Behavior
It should be possible to add a custom ServerHttpHeadersWriter
with Kotlin DSL, something like
http {
headers {
writer {
StaticServerHttpHeadersWriter.builder()
.header(..., ...)
.build()
}
}
}
Current Behavior
Kotlin ServerHeadersDsl
class doesn't provide a way to add custom ServerHttpHeadersWriter
s.
Context
A workaround is
http.headers { spec ->
spec.writer(...)
}