Protocol
ContentDecoder
Conform a type to this protocol to make it usable for decoding data via Vapor’s
ContentConfiguration system.protocol ContentDecoder : Sendable
Topics
Instance Methods
decode(_:from:headers:)Legacy “decode object” method. The providedNIOCore/ByteBuffershould be decoded as a value of the given type, optionally guided by the providedHTTPHeaders.decode(_:from:headers:userInfo:)“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.
Relationships
Inherits From
Swift.SendableSwift.SendableMetatype