public class StaticServerHttpHeadersWriter extends java.lang.Object implements ServerHttpHeadersWriter
HttpHeaders
that should be written to the response.Modifier and Type | Class and Description |
---|---|
static class |
StaticServerHttpHeadersWriter.Builder |
Constructor and Description |
---|
StaticServerHttpHeadersWriter(org.springframework.http.HttpHeaders headersToAdd) |
Modifier and Type | Method and Description |
---|---|
static StaticServerHttpHeadersWriter.Builder |
builder() |
reactor.core.publisher.Mono<java.lang.Void> |
writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Write the headers to the response.
|
public StaticServerHttpHeadersWriter(org.springframework.http.HttpHeaders headersToAdd)
public reactor.core.publisher.Mono<java.lang.Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
ServerHttpHeadersWriter
writeHttpHeaders
in interface ServerHttpHeadersWriter
Supplier
of the
ReactiveHttpOutputMessage.beforeCommit(Supplier)
.public static StaticServerHttpHeadersWriter.Builder builder()