Skip to content

Initializer

init(boundary:buffer:bufferCapacity:underlyingWriter:)

Creates a new buffered multipart writer with a user-supplied buffer.
init(boundary: String, buffer: BufferedMultipartWriter<UnderlyingWriter>.OutboundBody, bufferCapacity: Int, underlyingWriter: UnderlyingWriter)

Parameters

boundary

The boundary string to use for separating multipart parts.

buffer

The buffer to write to before flushing to the underlying writer.

bufferCapacity

Maximum number of bytes to buffer before writing to the underlying writer.

underlyingWriter

The writer that will receive the buffered data when capacity is reached.