Structurevapor 4.114.1Vapor
Configuration
Ecapsulates configuration options for URL-encoded form decoding.
struct Configuration
Ecapsulates configuration options for URL-encoded form decoding.
struct Configuration
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 URLEncodedFormDecoder
Decodes instances of Decodable
types from application/x-www-form-urlencoded
data.
init(configuration: Configuration = .init())
Create a new URLEncodedFormDecoder
.
func decode<D>(_: D.Type, from url: URI) throws -> D where D : Decodable
func decode<D>(_: D.Type, from string: String) throws -> D where D : Decodable
Decodes an instance of the supplied Decodable
type from a String
.
func decode<D>(_: D.Type, from body: ByteBuffer, headers: HTTPHeaders) throws -> D where D : Decodable
func decode<D>(_: D.Type, from body: ByteBuffer, headers: HTTPHeaders, userInfo: [CodingUserInfoKey : Sendable]) throws -> D where D : Decodable
func decode<D>(_: D.Type, from url: URI, userInfo: [CodingUserInfoKey : Sendable]) throws -> D where D : Decodable
func decode<D>(_: D.Type, from string: String, userInfo: [CodingUserInfoKey : Sendable]) throws -> D where D : Decodable
Decodes an instance of the supplied Decodable
type from a String
.
protocol Sendable
init(boolFlags: Bool = true, arraySeparators: [Character] = [",", "|"], dateDecodingStrategy: DateDecodingStrategy = .secondsSince1970, userInfo: [CodingUserInfoKey : Sendable] = [:])
Creates a new Configuration
.
enum DateDecodingStrategy
Supported date formats