Part

public struct Part

A part of a parsed multi-part form body.

  • The name attribute of the part.

    Declaration

    Swift

    public internal(set) var name: String { get }
  • The filename attribute of the part.

    Declaration

    Swift

    public internal(set) var filename: String { get }
  • Content type of the data in the part.

    Declaration

    Swift

    public internal(set) var type: String { get }
  • A dictionary of the headers: Content-Type, Content-Disposition, Content-Transfer-Encoding.

    Declaration

    Swift

    public internal(set) var headers: [Part.HeaderType : String] { get }
  • The contents of the part.

    Declaration

    Swift

    public internal(set) var body: ParsedBody { get }
  • Possible header types that can be found in a part of multi-part body.

    See more

    Declaration

    Swift

    public enum HeaderType