Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
c

StaticAssetConfig

class StaticAssetConfig(source: StaticAssetSource, mountPath: zio.http.Path = ..., cache: StaticAssetCache = ...)

Configuration used to load and serve an ordinary asset tree or deployment manifest.

Parameters

source

classpath, filesystem, or deployment-manifest source

mountPath

HTTP path below which the assets are served

cache

response cache-control headers for immutable and revalidating paths

Defined by scalive.StaticAssetConfig. View source (scalive/transport/zio-http/src/scalive/StaticAssets.scala:25-28)

Values3

cache

val cache: StaticAssetCache

Defined by scalive.StaticAssetConfig.cache. View source (scalive/transport/zio-http/src/scalive/StaticAssets.scala:28-28)

mountPath

val mountPath: zio.http.Path

Defined by scalive.StaticAssetConfig.mountPath. View source (scalive/transport/zio-http/src/scalive/StaticAssets.scala:27-27)

source

val source: StaticAssetSource

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