API Collection
ContentDecoder Implementations
Topics
Instance Methods
func decode<D>(D.Type, from: ByteBuffer, headers: HTTPHeaders) throws -> DLegacy “decode object” method. The providedNIOCore/ByteBuffershould be decoded as a value of the given type, optionally guided by the providedHTTPHeaders.func decode<D>(D.Type, from: ByteBuffer, headers: HTTPHeaders, userInfo: [CodingUserInfoKey : any Sendable]) throws -> D“Decode object” method. The providedNIOCore/ByteBuffershould be decoded as a value of the given type, optionally guided by the providedHTTPHeaders. The provideduserInfodictionary must be forwarded to the underlyingSwift/Decoderused to perform the decoding operation.