public class StaticHttpHeadersWriter extends java.lang.Object implements HttpHeadersWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
StaticHttpHeadersWriter.Builder |
| Constructor and Description |
|---|
StaticHttpHeadersWriter(HttpHeaders headersToAdd) |
| Modifier and Type | Method and Description |
|---|---|
static StaticHttpHeadersWriter.Builder |
builder() |
<any> |
writeHttpHeaders(ServerWebExchange exchange)
Write the headers to the response.
|
public <any> writeHttpHeaders(ServerWebExchange exchange)
HttpHeadersWriterwriteHttpHeaders in interface HttpHeadersWriterSupplier of the
ServerHttpResponse#beforeCommit(Supplier).public static StaticHttpHeadersWriter.Builder builder()