Back to Alamofire

BoolEncoding

docs/Structs/URLEncoding/BoolEncoding.html

5.12.0433 B
Original Source

BoolEncoding

public enum BoolEncoding : Sendable

Configures how Bool parameters are encoded.

`

                numeric
                `

Encode true as 1 and false as 0. This is the default behavior.

Declaration

Swift

case numeric

`

                literal
                `

Encode true and false as string literals.

Declaration

Swift

case literal