Instance Methodvapor 4.114.1Vapor
decode(_:from:headers:)
ContentDecoder
conformance.
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) throws -> D where D : Decodable
s5Vapor16PlaintextDecoderV6decode_4from7headersxxm_7NIOCore10ByteBufferV8NIOHTTP111HTTPHeadersVtKSeRzlF
What are these?6PM02
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.
struct ByteBuffer
ByteBuffer
stores contiguously allocated raw bytes. It is a random and sequential accessible sequence of zero or more bytes (octets).
struct HTTPHeaders
A representation of a block of HTTP header fields.
protocol Decodable
A type that can decode itself from an external representation.
init()
func decode<D>(_ decodable: D.Type, from body: ByteBuffer, headers: HTTPHeaders, userInfo: [CodingUserInfoKey : Sendable]) throws -> D where D : Decodable
ContentDecoder
conformance.