Initializervapor 4.114.1Vapor
init
PlaintextDecoder.swift:6init()
init()
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 PlaintextDecoder
Decodes data as plaintext, utf8.
func decode<D>(_ decodable: D.Type, from body: ByteBuffer, headers: HTTPHeaders) throws -> D where D : Decodable
ContentDecoder
conformance.
func decode<D>(_ decodable: D.Type, from body: ByteBuffer, headers: HTTPHeaders, userInfo: [CodingUserInfoKey : Sendable]) throws -> D where D : Decodable
ContentDecoder
conformance.