ArrayEncoding

public enum ArrayEncoding

Configures how Array parameters are encoded.

  • An empty set of square brackets is appended to the key for every value. This is the default behavior.

    Declaration

    Swift

    case brackets
  • No brackets are appended. The key is encoded as is.

    Declaration

    Swift

    case noBrackets
  • Brackets containing the item index are appended. This matches the jQuery and Node.js behavior.

    Declaration

    Swift

    case indexInBrackets
  • Provide a custom array key encoding with the given closure.

    Declaration

    Swift

    case custom((_ key: String, _ index: Int) -> String)