Enumerationvapor 4.114.1Vapor
DateDecodingStrategy
Supported date formats
enum DateDecodingStrategy
Supported date formats
enum DateDecodingStrategy
s5Vapor21URLEncodedFormDecoderV13ConfigurationV20DateDecodingStrategyO
What are these?1B4Z1
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
struct Configuration
Ecapsulates configuration options for URL-encoded form decoding.
struct URLEncodedFormDecoder
Decodes instances of Decodable
types from application/x-www-form-urlencoded
data.
case secondsSince1970
Decodes integer or floating-point values expressed as seconds since the UNIX epoch (1970-01-01 00:00:00.000Z
).
case iso8601
Decodes ISO-8601 formatted date strings.
case custom((Decoder) throws -> Date)
Invokes a custom callback to decode values when a date is requested.
init(boolFlags: Bool = true, arraySeparators: [Character] = [",", "|"], dateDecodingStrategy: DateDecodingStrategy = .secondsSince1970, userInfo: [CodingUserInfoKey : Sendable] = [:])
Creates a new Configuration
.
protocol Sendable