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 = ""
-
The filename attribute of the part.
Declaration
Swift
public internal(set) var filename = ""
-
Content type of the data in the part.
Declaration
Swift
public internal(set) var type = "text/plain"
-
A dictionary of the headers: Content-Type, Content-Disposition, Content-Transfer-Encoding.
Declaration
Swift
public internal(set) var headers = [HeaderType: String]()
-
The contents of the part.
Declaration
Swift
public internal(set) var body: ParsedBody = .raw(Data())
-
Possible header types that can be found in a part of multi-part form body.
See moreDeclaration
Swift
public enum HeaderType