Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
o

StaticAssets

object StaticAssets

Defined by scalive.StaticAssets. View source (scalive/transport/zio-http/src/scalive/StaticAssets.scala:296-636)

Methods1

load

def load(config: StaticAssetConfig): zio.package.Task[StaticAssets]

Loads and validates the configured asset description.

Bytes are read again for each request. Immutable paths reject bytes that differ from their load-time digest; revalidating paths serve current bytes with a current ETag.

Defined by scalive.StaticAssets.load. View source (scalive/transport/zio-http/src/scalive/StaticAssets.scala:316-320)