Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Method

writeBoundary(end:)

Writes a multipart boundary with optional termination.
mutating func writeBoundary(end: Bool) async throws(Self.Failure)

Parameters

end

Whether this is the final boundary that terminates the multipart message.

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