DataEncodingStrategy

public enum DataEncodingStrategy

Defines available strategies when encoding Data instances.

  • raw

    Encode the data as is.

    Declaration

    Swift

    case raw
  • Encodes the data using Base 64.

    Declaration

    Swift

    case base64
  • Delegates the encoding to the closure provided.

    Declaration

    Swift

    case custom((Data, Encoder) throws -> Void)