Instance Method
nextCollatedPart()
Advances to the next section, gathering each part’s body chunks into a single section.
mutating func nextCollatedPart() async throws(MultipartParserError) -> MultipartSection<BackingSequence.Element>?
Return Value
The next section, or nil once the message is complete.
Discussion
Unlike next(), which yields body chunks as they arrive, this method accumulates a part’s body until the part ends and yields it whole. This is what backs MultipartParserAsyncSequence, and it means the largest part of the message must fit in memory.
Throws
MultipartParserError if the message is malformed, if it ends part-way through a part, or if the backing sequence itself throws.