const mixinafColdFeet::ColdFeet
afColdFeet::ColdFeet
(Service) - Creates client-side asset URIs.
- fromClientUri
abstract Uri fromClientUri(Uri uri)Converts the given client URI (one that would normally be used by the browser to access the resource) into a cachable
Cold FeetURI. Essentially this adds aCold Feetprefix and digest to the given URI, as well as checking for URI validity and that the corresponding file exists.The URI must be mapped by BedSheet's
FileHandlerservice.- fromServerFile
abstract Uri fromServerFile(File asset)Converts the given asset File (on the server's file system) into a cachable
Cold FeetURI that can be used by clients / browsers.The asset must exist on the file system and be mapped by BedSheet's
FileHandlerservice.