public class CacheControlHttpHeadersWriter extends java.lang.Object implements HttpHeadersWriter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHE_CONTRTOL_VALUE
The value for cache control value
|
static java.lang.String |
EXPIRES_VALUE
The value for expires value
|
static java.lang.String |
PRAGMA_VALUE
The value for pragma value
|
Constructor and Description |
---|
CacheControlHttpHeadersWriter() |
Modifier and Type | Method and Description |
---|---|
<any> |
writeHttpHeaders(ServerWebExchange exchange)
Write the headers to the response.
|
public static final java.lang.String EXPIRES_VALUE
public static final java.lang.String PRAGMA_VALUE
public static final java.lang.String CACHE_CONTRTOL_VALUE
public <any> writeHttpHeaders(ServerWebExchange exchange)
HttpHeadersWriter
writeHttpHeaders
in interface HttpHeadersWriter
Supplier
of the
ServerHttpResponse#beforeCommit(Supplier)
.