Enumeration
MultipartSection
Represents a section of a multipart message during parsing or serialization.
enum MultipartSection<Body> where Body : RangeReplaceableCollection, Body : Sendable, Body.Element == UInt8
Overview
Multipart messages are composed of different types of sections that appear in sequence: boundaries that separate parts, header fields that describe each part, and body chunks that contain the actual data.
This enum is used by both parsers and writers to represent the structure of multipart messages in a streaming fashion, allowing for memory-efficient processing of large messages.
Topics
Enumeration Cases
MultipartSection.bodyChunk(_:)A chunk of body data for the current multipart part.MultipartSection.boundary(end:)A multipart boundary marker.MultipartSection.headerFields(_:)Header fields for a multipart part.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype