NilEncoding
public struct NilEncoding : Sendable
Encoding to use for nil values.
-
Encodes
nilby dropping the entire key / value pair.Declaration
Swift
public static let dropKey: URLEncodedFormEncoder.NilEncoding -
Encodes
nilby dropping only the value. e.g.value1=one&nilValue=&value2=two.Declaration
Swift
public static let dropValue: URLEncodedFormEncoder.NilEncoding -
Encodes
nilasnull.Declaration
Swift
public static let null: URLEncodedFormEncoder.NilEncoding -
Creates an instance with the encoding closure called for
nilvalues.Declaration
Swift
public init(encoding: @escaping @Sendable () -> String?)Parameters
encodingClosure used to perform the encoding.
View on GitHub
Install in Dash