Skip to content

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

Structure

MultipartParser

Parses any kind of multipart encoded data into MultipartSections.
struct MultipartParser<Body> where Body : RangeReplaceableCollection, Body : Sendable, Body.Element == UInt8

Overview

Use parse(_:) when the whole message is already in memory. To parse a message as it arrives, wrap the incoming chunks in a StreamingMultipartParserAsyncSequence or a MultipartParserAsyncSequence instead.

Topics

Initializers

Instance Methods