Skip to content

A tiny library makes uploading and downloading easier

License

Notifications You must be signed in to change notification settings

yuvalt/Transporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Transporter

uploading and downloading lib

Transporter.handleEventsForBackgroundURLSection(identifier: String, completionHandler: ( ) -> ( ))

let task1 = UploadTask(file: String)
					.progress { byteswritten, totalbytes in
					
					}
					.completed { result in
					
					}
task1.method = .Post
task1.retry = true
task1.timeout = 10
task1.headers = [String: AnyObject]
task1.parameters = [String: AnyObject]

let task2 = UploadTask(data: NSData)
					.progress()
					.completed()

let task3 = DownloadTask(url: "")
					.progress()
					.completed()

Transporter.headers = [:]

Transporter.push(task1)
			.validate()
			.progress()
			.completed()
			.resume()

Transporter.push(task1 -> task2 -> task3)
			.progress()
			.completed()
			.resume()

Transporter.push(task1 <-> task2 <-> task3)
			.progress()
			.completed()
			.resume()
			

About

A tiny library makes uploading and downloading easier

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 98.0%
  • Ruby 2.0%