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?
  • url

    The url of the attachment

    Declaration

    Swift

    public let url: URL?
  • The Data representation of the attachment

    Declaration

    Swift

    public let data: Data?
  • The mime type of the attachment as a String

    Declaration

    Swift

    public var mimeType: String?
  • Declaration

    Swift

    public init(name: String, fileName: String? = nil, url: URL? = nil, data: Data? = nil, mimeType: String? = nil)