Skip to content

Enqueue your network requests using NetworkRequestOperationQueue.

License

Notifications You must be signed in to change notification settings

shadzik/NetworkRequestOperationQueue

Repository files navigation

NetworkRequestOperationQueue

Enqueue your network requests using NetworkRequestOperationQueue.

Benefits

  • serial or parallel
  • prioritize requests
  • cancel requests
  • add dependencies to requests
  • define and use ready strategies
  • define and use retry strategies
  • use predefined content mappers (JSON, data) or easily create your own

Installation

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/shadzik/NetworkRequestOperationQueue.git", .upToNextMajor(from: "1.0.0"))
]

Usage

Please refer to our Demo project or the unit tests to see how it works.

A bit of history

Back in the day, working for a great german telco, we've implemented this code in Objective-C with Jola, Paweł, Maciej, Stefan, Stefan and me. This is a complete rewrite in Swift (+ some changes and additions).