docs/Classes/URLEncodedFormEncoder/NilEncoding.html
public struct NilEncoding : Sendable
Encoding to use for nil values.
`
dropKey
`
Encodes nil by dropping the entire key / value pair.
Swift
public static let dropKey: URLEncodedFormEncoder.NilEncoding
`
dropValue
`
Encodes nil by dropping only the value. e.g. value1=one&nilValue=&value2=two.
Swift
public static let dropValue: URLEncodedFormEncoder.NilEncoding
`
null
`
Encodes nil as null.
Swift
public static let null: URLEncodedFormEncoder.NilEncoding
`
init(encoding:)
`
Creates an instance with the encoding closure called for nil values.
Swift
public init(encoding: @escaping @Sendable () -> String?)
| encoding |
Closure used to perform the encoding.
|