UploadRequestType

public enum UploadRequestType

Types of UploadAPIRequest

  • Will create NSURLSessionUploadTask using uploadTaskWithRequest(_:fromFile:) method

    Declaration

    Swift

    case uploadFromFile(URL)
  • Will create NSURLSessionUploadTask using uploadTaskWithRequest(_:fromData:) method

    Declaration

    Swift

    case uploadData(Data)
  • Will create NSURLSessionUploadTask using uploadTaskWithStreamedRequest(_) method

    Declaration

    Swift

    case uploadStream(InputStream)
  • Undocumented

    Declaration

    Swift

    case multipartFormData(formData: (MultipartFormData) -> Void,
                           memoryThreshold: UInt64,
                           fileManager: FileManager)