Class
FallbackTransform
public class FallbackTransform: Transform
Returns default file if the source of the transformation does not work or the transformation fails.
Relationships
Superclass
Transform
:nodoc:
Initializers
Methods
handle(_:)
@discardableResult
func handle(_ value: String) -> Self
Adds the handle
option.
Parameters
Name | Type | Description |
---|---|---|
value | String |
the HANDLE of the file that should be returned. |
cache(_:)
@discardableResult
func cache(_ value: Int) -> Self
Adds the cache
option.
Parameters
Name | Type | Description |
---|---|---|
value | Int |
The number of seconds fallback response should be cached in CDN. |