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.
See Also
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, Body>(E, boundary: String, into: inout Body) throwsEncodes anEncodableitem into someMultipartPartBodyElementusing the supplied boundary.func encode<E, Body>(E, boundary: String, to: Body.Type) throws -> BodyEncodes anEncodableitem into someMultipartPartBodyElementusing the supplied boundary.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype