docs/Protocols/DataPreprocessor.html
public protocol DataPreprocessor : Sendable
Type used to preprocess Data before it handled by a serializer.
`
preprocess(_:)
`
Process Data before it’s handled by a serializer.
Swift
func preprocess(_ data: Data) throws -> Data
| data |
The raw Data to process.
|
Self == PassthroughPreprocessor`
passthrough
` Extension method
Provides a PassthroughPreprocessor instance.
Swift
public static var passthrough: PassthroughPreprocessor { get }
Self == GoogleXSSIPreprocessor`
googleXSSI
` Extension method
Provides a GoogleXSSIPreprocessor instance.
Swift
public static var googleXSSI: GoogleXSSIPreprocessor { get }