Package com.mcawful
Class CustomPanelManifestCache.CachedResponse
java.lang.Object
com.mcawful.CustomPanelManifestCache.CachedResponse
- Enclosing class:
- CustomPanelManifestCache
Result of one full build: serialized bytes, an ETag derived from those bytes, the
caller-supplied signature that produced them, and the wall-clock time the signature
was last verified (used by the
CustomPanelManifestCache.CACHE_SIGNATURE_TTL_MILLIS floor). Immutable;
safe to hand out to multiple HTTP threads.-
Method Summary
-
Method Details
-
bytes
public byte[] bytes()- Returns:
- UTF-8 JSON bytes; do not mutate
-
etag
- Returns:
- strong ETag of the form
"sha256-<base64url>", passed toHttpServerPageHandler.sendCachedBytes(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.http.FullHttpRequest, byte[], java.lang.String, java.lang.String)
-