DataPreprocessor

public protocol DataPreprocessor

Type used to preprocess Data before it handled by a serializer.

  • Process Data before it’s handled by a serializer.

    Declaration

    Swift

    func preprocess(_ data: Data) throws -> Data

    Parameters

    data

    The raw Data to process.

Available where Self == PassthroughPreprocessor

Available where Self == GoogleXSSIPreprocessor