Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
o

StaticAssetConfig

object StaticAssetConfig

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

Methods4

classpath

def classpath(resourcePrefix: String, assets: Iterable[String], mountPath: zio.http.Path = ..., serveOriginals: Boolean = ..., classLoader: ClassLoader = ...): StaticAssetConfig

Configures an ordinary classpath tree from its complete relative file list.

Scalive serves the unchanged tree below one immutable asset-set version. Set serveOriginals only when revalidating unversioned paths are also required.

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

deploymentClasspath

def deploymentClasspath(resourcePrefix: String, manifest: String = ..., mountPath: zio.http.Path = ..., classLoader: ClassLoader = ...): StaticAssetConfig

Configures manifest-defined final paths from a classpath resource prefix.

Version 1 maps logical aliases to an exact relative file and an immutable or revalidate cache policy. The manifest defaults to assets-manifest.json.

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

deploymentDirectory

def deploymentDirectory(root: java.nio.file.Path, manifest: String = ..., mountPath: zio.http.Path = ...): StaticAssetConfig

Configures manifest-defined final paths from a filesystem directory.

Version 1 maps logical aliases to an exact relative file and an immutable or revalidate cache policy. The manifest defaults to assets-manifest.json.

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

directory

def directory(root: java.nio.file.Path, mountPath: zio.http.Path = ..., serveOriginals: Boolean = ..., assets: Option[Iterable[String]] = ...): StaticAssetConfig

Configures an ordinary filesystem tree.

assets = None discovers every regular file below root; an explicit value limits the tree. Scalive serves the unchanged tree below one immutable asset-set version.

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