docs/Structs/URLEncoding/ArrayEncoding.html
public enum ArrayEncoding : Sendable
Configures how Array parameters are encoded.
`
brackets
`
An empty set of square brackets is appended to the key for every value. This is the default behavior.
Swift
case brackets
`
noBrackets
`
No brackets are appended. The key is encoded as is.
Swift
case noBrackets
`
indexInBrackets
`
Brackets containing the item index are appended. This matches the jQuery and Node.js behavior.
Swift
case indexInBrackets
`
custom(_:)
`
Provide a custom array key encoding with the given closure.
Swift
case custom(@Sendable (_ key: String, _ index: Int) -> String)