MultipartAttachment
public struct MultipartAttachment : Equatable
Struct representing a multipart attachment to a multipart form data request
-
The name for the attachment
Declaration
Swift
public let name: String -
The file name of the attachment
Declaration
Swift
public let fileName: String? -
The url of the attachment
Declaration
Swift
public let url: URL? -
The
Datarepresentation of the attachmentDeclaration
Swift
public let data: Data? -
The mime type of the attachment as a
StringDeclaration
Swift
public var mimeType: String? -
Declaration
Swift
public init(name: String, fileName: String? = nil, url: URL? = nil, data: Data? = nil, mimeType: String? = nil)
MultipartAttachment Structure Reference