Skip to content

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

Initializer

init(boundary:buffer:)

Creates a sequence that parses the multipart message carried by buffer.
init(boundary: String, buffer: BackingSequence)

Parameters

boundary

The boundary separating the parts of the message, without its leading hyphens. For a message delimited by --abc123, pass abc123.

buffer

An asynchronous sequence of chunks making up the multipart message. Chunks may be split at any point; they need not line up with the message’s structure.