Vapor Documentation Beta

Enumeration URLEncoded​Form​Decoder.​Configuration.​Date​Decoding​Strategy

public enum DateDecodingStrategy

Supported date formats

Member Of

URLEncodedFormDecoder.Configuration

Used to capture URLForm Coding Configuration used for decoding

Enumeration Cases

seconds​Since1970

case secondsSince1970

Seconds since 1 January 1970 00:00:00 UTC (Unix Timestamp)

iso8601

case iso8601

ISO 8601 formatted date

custom

case custom(: (Decoder) throws -> Date)

Using custom callback