Vapor Documentation Beta

Enumeration URLEncoded​Form​Encoder.​Configuration.​Date​Encoding​Strategy

public enum DateEncodingStrategy

Supported date formats

Member Of

URLEncodedFormEncoder.Configuration

Used to capture URLForm Coding Configuration used for encoding.

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(: (Date, Encoder) throws -> Void)

Using custom callback