Swiftpack.co - google/gtm-session-fetcher as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by google.
google/gtm-session-fetcher v2.0.0
Google Toolbox for Mac - Session Fetcher
⭐️ 186
🕓 4 days ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/google/gtm-session-fetcher.git", from: "v2.0.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

SwiftPM CocoaPods

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.

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

To get started please read USING.md for detailed information.

GitHub

link
Stars: 186
Last commit: 4 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

v2.0.0 Release
4 days ago

With this release the source layout has been changed to better match what SwiftPM wants (this was done in the model used by Firebase to hopefully allow for easier integrations). Both SwiftPM and CocoaPods now support #importing headers as #import <GTMSessionFetcher/HEADER_NAME.h>. The modular imports still are unchanged and unique to each package system because of the inherent differences in the package systems.

Other changes:

  • The wiki has been retired and the content moved to markdown pages in the repository to allow for contributions going forward.
  • Apis that had previously been deprecated have been removed. #288, #289
  • SwiftPM and CocoaPods systems now run all the unittests.
  • The Xcode project within the project was dropped and CocoaPods and/or SwiftPM can be directly used to work on the project to ensure things continue to work.
  • The Github Actions have been improved to have better coverage on future changes to the project.
  • Add explicit concurrent callback queue support for the fetcher service. #257
  • Drop the XML processing/formatting support. #279
  • Invoke the fetcher's completion only after releasing callbacks. #299

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