Skip to content

An extremely modular functional networking library for Swift

License

Notifications You must be signed in to change notification settings

schrockblock/funky-network

Repository files navigation

FunkyNetwork

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

Checkout the tests to get started!

The example project also has some good stuff. LoginNetworkCall shows how you can send, receive, and parse json with this library and Eson (a different pod I wrote). AuthenticatedNetworkCall shows how you can alter the headers and most other things in this pod.

Advantages

  1. Functional code!
  2. Modular! Using subclassing and having one call per class makes it really easy to take calls with you between controllers, view models, or even projects.
  3. Lightweight! Only a few classes here, and none terribly long or involved.
  4. Convenient! Smart defaults make things easy to work with out of the box.
  5. Flexible! Since everything is broken up into tiny pieces, it's easy to swap things out, or mix and match.
  6. Testable! Easily stub your calls so you can quickly reproduce tricky edge cases.

Installation

FunkyNetwork is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'FunkyNetwork', git: 'https://github.com/schrockblock/funky-network.git'

Author

Elliot Schrock

License

FunkyNetwork is available under the MIT license. See the LICENSE file for more info.

About

An extremely modular functional networking library for Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published