DataPreprocessor
public protocol DataPreprocessor : Sendable
Type used to preprocess Data before it handled by a serializer.
-
Process
Databefore it’s handled by a serializer.Declaration
Swift
func preprocess(_ data: Data) throws -> DataParameters
dataThe raw
Datato process.
-
passthroughExtension methodProvides a
PassthroughPreprocessorinstance.Declaration
Swift
public static var passthrough: PassthroughPreprocessor { get }
-
googleXSSIExtension methodProvides a
GoogleXSSIPreprocessorinstance.Declaration
Swift
public static var googleXSSI: GoogleXSSIPreprocessor { get }
View on GitHub
Install in Dash