Vapor Documentation Beta

Enumeration URLEncoded​Form​Encoder.​Configuration.​Array​Encoding

public enum ArrayEncoding

Supported array encodings.

Member Of

URLEncodedFormEncoder.Configuration

Used to capture URLForm Coding Configuration used for encoding.

Enumeration Cases

bracket

case bracket

Arrays are serialized as separate values with bracket suffixed keys. For example, foo = [1,2,3] would be serialized as foo[]=1&foo[]=2&foo[]=3.

separator

case separator(: Character)

Arrays are serialized as a single value with character-separated items. For example, foo = [1,2,3] would be serialized as foo=1,2,3.

values

case values

Arrays are serialized as separate values. For example, foo = [1,2,3] would be serialized as foo=1&foo=2&foo=3.