Swiftpack.co -  google/gtm-session-fetcher as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Google Toolbox for Mac - Session Fetcher
.package(url: "https://github.com/google/gtm-session-fetcher.git", from: "v1.5.0")

Google Toolbox for Mac - Session Fetcher

Project site https://github.com/google/gtm-session-fetcher
Discussion group http://groups.google.com/group/google-toolbox-for-mac

Build Status

GTMSessionFetcher makes it easy for Cocoa applications to perform http operations. The fetcher is implemented as a wrapper on NSURLSession, so its behavior is asynchronous and uses operating-system settings on iOS and Mac OS X.

Features include:

  • Simple to build; only one source/header file pair is required
  • Simple to use: takes just two lines of code to fetch a request
  • Supports upload and download sessions
  • Flexible cookie storage
  • Automatic retry on errors, with exponential backoff
  • Support for generating multipart MIME upload streams
  • Easy, convenient logging of http requests and responses
  • Supports plug-in authentication such as with GTMAppAuth
  • Easily testable; self-mocking
  • Automatic rate limiting when created by the GTMSessionFetcherService factory class
  • Fully independent of other projects


Stars: 162
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

v1.5.0 Release
29 weeks ago
  • #197 - Revert "Work around early iOS 13 betas still in use."
  • #198 - Check a service exists before marking created NSURLSession as shared.
  • #204 - Add the clientWillReconnectBackgroundSession property to GTMSessionFetcher.
  • Xcode 12 minimum iOS version issues (move minimum OS in some files to iOS 9, but older ones should still work if using older Xcode versions and your own project file)
  • #207 - Protect access to the taskid to deal with different threads.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API