ismailbozk / Tremolo

An iOS Networking framework for handling recoverable network calls.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tremolo

Version License Platform

Idea

Tremolo is an iOS Networking framework. It's designed to prepare URLRequests and manage failed/recoverable network requests in a structured way.

Use cases

  • Validate and Prepare URLRequests before triggering them.
    • Sometimes URLRequests needs to have some valid information like correct session token. Such as refreshing the token via another network call and insert it into the URLRequest.
    • Sign in the user before triggering the URLRequest if the api requires users to sign in before for the actual endpoint.
  • Recover from the errors retrieved from server;
    • 401 Authentication errors. Such as expired or invalid session token.
    • Password expired or user changed the password recently. Ask user to put new password and continue when the password retrieved from user.
    • etc.

Please refer to the sample unit test for some use case examples.

Requirements

Installation

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

pod 'Tremolo'

Author

Ismail Bozkurt, ismailbozk@gmail.com LinkedIn

License

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

About

An iOS Networking framework for handling recoverable network calls.

License:MIT License


Languages

Language:Swift 95.1%Language:Ruby 4.9%