Instance Method
writePart(_:)
Writes a complete multipart part including boundary, headers, and body.
mutating func writePart(_ part: MultipartPart<some RangeReplaceableCollection<UInt8> & Sendable>) async throws(Self.Failure)
Parameters
partThe multipart part to write.
Discussion
Note
Override this method only for performance reasons. Most implementations should rely on the default implementation unless specific performance optimizations are needed.
Default Implementations
MultipartWriter Implementations
func writePart(MultipartPart<some RangeReplaceableCollection<UInt8> & Sendable>) async throws(Self.Failure)Writes a complete multipart part including boundary, headers, and body.