RenderedAsset

constructor(module: AssetModuleId, type: AssetType, variant: CompressionMode, headers: Map<String, String>, size: Long, lastModified: Long, digest: Pair<HashAlgorithm, ByteString>?, producer: () -> ByteString)

Parameters

module

Asset module which was rendered to produce this record.

type

Type of asset being served.

variant

Compression mode for this asset response.

headers

Headers to apply to this asset response.

size

Size of the data expected from this asset variant.

lastModified

Unix epoch timestamp indicating when this asset was last modified.

digest

Raw bytes of the attached digest for this asset.

producer

Data payload callable for this asset response.