MultipartFormData
public class MultipartFormDataObject encapsulating a multipart form.
- 
                  
                  String denoting the Content-Typeof the request header.DeclarationSwift public var contentType: String { get }
- 
                  
                  Initialize a MultipartFormDatainstance.DeclarationSwift public init()
- 
                  
                  Append a new body part to the multipart form, where the original data is in a file described by the fileNamestring.DeclarationSwift public func append(_ data: Data, withName: String, mimeType: String? = nil, fileName: String? = nil)ParametersDataThe data of the body part. withNameThe name/key of the body part. mimeTypeThe MIME type of the body part. fileNameThe name of the file the data came from. Return ValueReturns a Dataobject encompassing the combined body parts.
- 
                  
                  Append a new body part to the multipart form, where the original data is in a url described by fileURL.DeclarationSwift public func append(_ fileURL: URL, withName: String, mimeType: String? = nil)ParametersfileURLThe url to extract the data from. withNameThe name/key of the body part. mimeTypeThe MIME type of the body part. Return ValueReturns a Dataobject encompassing the combined body parts.
- 
                  
                  Combine the multipart form body parts into a single Dataobject.DeclarationSwift public func toData() throws -> DataReturn ValueReturns a Dataobject encompassing the combined body parts.
 View on GitHub
            View on GitHub
           MultipartFormData Class Reference
      MultipartFormData Class Reference