Skip to content

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 provided NIOCore/ByteBuffer should be decoded as a value of the given type, optionally guided by the provided HTTPHeaders.
  • decode(_:from:headers:userInfo:)
    “Decode object” method. The provided NIOCore/ByteBuffer should be decoded as a value of the given type, optionally guided by the provided HTTPHeaders. The provided userInfo dictionary must be forwarded to the underlying Swift/Decoder used to perform the decoding operation.

Relationships

Inherits From

  • Swift.Sendable
  • Swift.SendableMetatype

Conforming Types