Class StaticServerHttpHeadersWriter
java.lang.Object
org.springframework.security.web.server.header.StaticServerHttpHeadersWriter
- All Implemented Interfaces:
ServerHttpHeadersWriter
Allows specifying
HttpHeaders
that should be written to the response.- Since:
- 5.0
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionStaticServerHttpHeadersWriter
(org.springframework.http.HttpHeaders headersToAdd) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
reactor.core.publisher.Mono<Void>
writeHttpHeaders
(org.springframework.web.server.ServerWebExchange exchange) Write the headers to the response.
-
Constructor Details
-
StaticServerHttpHeadersWriter
public StaticServerHttpHeadersWriter(org.springframework.http.HttpHeaders headersToAdd)
-
-
Method Details
-
writeHttpHeaders
public reactor.core.publisher.Mono<Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange) Description copied from interface:ServerHttpHeadersWriter
Write the headers to the response.- Specified by:
writeHttpHeaders
in interfaceServerHttpHeadersWriter
- Returns:
- A Mono which is returned to the
Supplier
of theReactiveHttpOutputMessage.beforeCommit(Supplier)
.
-
builder
-