FallbackTransform
public class FallbackTransform : Transform
Returns default file if the source of the transformation does not work or the transformation fails.
-
Initializes a
FallbackTransformobject.Declaration
Swift
public init()
-
Adds the
handleoption.Declaration
Swift
@discardableResult func handle(_ value: String) -> SelfParameters
valuethe HANDLE of the file that should be returned.
-
Adds the
cacheoption.Declaration
Swift
@discardableResult func cache(_ value: Int) -> SelfParameters
valueThe number of seconds fallback response should be cached in CDN.
View on GitHub
FallbackTransform Class Reference