AssetLoader

com.alecdorrington.assetloader.AssetLoader
See theAssetLoader companion class
object AssetLoader

Attributes

See also
Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(assetPath: String, maxAge: Int): AssetLoader

Constructs a new AssetLoader.

Constructs a new AssetLoader.

Value parameters

assetPath

The root directory on the server's file system where assets are stored, relative to the directory of the running server process.

maxAge

The maximum age (in seconds) for which an asset should be considered fresh for caching purposes. Set to 0 to disable caching.

Attributes

def apply(assetPath: Iterable[String], maxAge: Int): AssetLoader

Constructs a new AssetLoader.

Constructs a new AssetLoader.

Value parameters

assetPath

The root directory on the server's file system where assets are stored, relative to the directory of the running server process. Given as a "/"-separated array of path segments.

maxAge

The maximum age (in seconds) for which an asset should be considered fresh for caching purposes. Set to 0 to disable caching.

Attributes

def apply(assetPath: Path, maxAge: Int): AssetLoader

Constructs a new AssetLoader.

Constructs a new AssetLoader.

Value parameters

assetPath

The root directory on the server's file system where assets are stored, relative to the directory of the running server process.

maxAge

The maximum age (in seconds) for which an asset should be considered fresh for caching purposes. Set to 0 to disable caching.

Attributes