API Collection
ContentEncoder Implementations
Topics
Instance Methods
encode(_:to:headers:)Legacy “encode object” method. The provided encodable object’s contents must be stored in the providedNIOCore/ByteBuffer, and any appropriate headers for the type of the content may be stored in the providedHTTPHeaders.encode(_:to:headers:userInfo:)“Encode object” method. The provided encodable object’s contents must be stored in the providedNIOCore/ByteBuffer, and any appropriate headers for the type of the content may be stored in the providedHTTPHeadersobjects. The provideduserInfodictionary must be forwarded to the underlyingSwift/Encoderused to perform the encoding operation.