Skip to content

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

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype