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