FallbackTransform
public class FallbackTransform : Transform
Returns default file if the source of the transformation does not work or the transformation fails.
-
Initializes a
FallbackTransform
object.Declaration
Swift
public init()
-
Adds the
handle
option.Declaration
Swift
@discardableResult func handle(_ value: String) -> Self
Parameters
value
the HANDLE of the file that should be returned.
-
Adds the
cache
option.Declaration
Swift
@discardableResult func cache(_ value: Int) -> Self
Parameters
value
The number of seconds fallback response should be cached in CDN.