Skip to content

bavalde/Rinku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rinku (リンク)

A beautifully simple networking library

The purpose of Rinku ("link" in japanese) is to allow the user to established a connection/link to the outside world, via NSURLSession. The main goals while developing it were:

  • Minimalism
  • Composability
  • Simplicity

Usage

The most basic case would be with a GET:

Rinku.get("http://myservice.com/").completion({completion in

})

The completion parameter is a tuple (NSData!, NSURLResponse!, NSError!). You can as well POST data:

Rinku.post("http://myservice.com/").body(image).completion({completion in

})

Actions

The currents actions are part of this version:

  • Add an HTTP Headers
  • Add an HTTP Body
  • Add a completion block

A lot is covered with these basic actions, but more will be available soon.

About

Beautifully simple networking library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published