Initializer
init(boolFlags:arraySeparators:dateDecodingStrategy:userInfo:)
Creates a new
URLEncodedFormDecoder.Configuration.init(boolFlags: Bool = true, arraySeparators: [Character] = [",", "|"], dateDecodingStrategy: URLEncodedFormDecoder.Configuration.DateDecodingStrategy = .secondsSince1970, userInfo: [CodingUserInfoKey : any Sendable] = [:])
Parameters
boolFlagsWhen
true, form data such asflag1&flag2will be interpreted as boolean flags, where the resulting value is true if the flag name exists and false if it does not. Whenfalse, such data is interpreted as keys having no values.arraySeparatorsA set of characters to be treated as value separators for array values. For example, using the default of
[",", "|"], botharr=v1,v2andarr=v1|v2are decoded as an array namedarrwith the two valuesv1andv2.dateDecodingStrategyThe
URLEncodedFormDecoder.Configuration.DateDecodingStrategyto use for date decoding.userInfoAdditional and/or overriding user info keys for the underlying
Decoder(you probably don’t need this).