Structure
FormDataEncoder
Encodes
Encodable items to multipart/form-data encoded Data.struct FormDataEncoder
Overview
See RFC#2388 for more information about multipart/form-data encoding.
Seealso MultipartParser for more information about the multipart encoding.
Topics
Initializers
init()Creates a newFormDataEncoder.
Instance Properties
var userInfo: [CodingUserInfoKey : any Sendable]Any contextual information set by the user for encoding.
Instance Methods
func encode<E>(E, boundary: String) throws -> StringEncodes anEncodableitem toStringusing the supplied boundary.func encode<E>(E, boundary: String, into: inout ByteBuffer) throwsEncodes anEncodableitem into aByteBufferusing the supplied boundary.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype