Skip to content

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

Instance Method

finish(writingEndBoundary:)

If the buffer has not been emptied by the last write, flushes the final part of the message to the underlying writer.
mutating func finish(writingEndBoundary: Bool = true) async throws(BufferedMultipartWriter<UnderlyingWriter>.Failure)

Discussion

By default, writes the end boundary as required by the multipart protocol.