Skip to content

Class

MultipartParser

Parses multipart-encoded Data into MultipartParts. Multipart encoding is a widely-used format for encoding web-form data that includes rich content like files. It allows for arbitrary data to be encoded in each part thanks to a unique delimiter “boundary” that is defined separately. This boundary is guaranteed by the client to not appear anywhere in the data.
final class MultipartParser

Overview

multipart/form-data is a special case of multipart encoding where each part contains a Content-Disposition header and name. This is used by the FormDataEncoder and FormDataDecoder to convert Codable types to/from multipart data.

See Wikipedia for more information.

See also form-urlencoded encoding where delimiter boundaries are not required.

Topics

Initializers

Instance Properties

Instance Methods