com.alecdorrington.assetloader.AssetLoader
See theAssetLoader companion object
class AssetLoader
A utility for loading and caching static assets so that they can be served by a web server.
Only intended for use when the total number of assets is small enough to fit comfortably in memory.
Warning: Work with the assumption that all files in assetPath will be made publicly accessible.
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. Caching is disabled by default (
0).
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article