Skip to content

ServerHeadersDsl doesn't allow addition of custom ServerHttpHeadersWriter #16009

Closed
@vonZeppelin

Description

@vonZeppelin

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 ServerHttpHeadersWriters.

Context
A workaround is

http.headers { spec ->
    spec.writer(...)
}

Metadata

Metadata

Labels

in: configAn issue in spring-security-configtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions