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
func decode<D>(D.Type, from: Data, headers: HTTPFields, userInfo: [CodingUserInfoKey : any Sendable]) throws -> D“Decode object” method. The providedFoundation/Datashould be decoded as a value of the given type, optionally guided by the providedHTTPFields. The provideduserInfodictionary must be forwarded to the underlyingSwift/Decoderused to perform the decoding operation.
Relationships
Inherits From
Swift.SendableSwift.SendableMetatype