Clone this repo:
  1. a3e318b Fix for OS inclusive language by Shan Cao · 3 years, 9 months ago master
  2. 23812c6 Merge pull request #28 from thomasvl/update by Thomas Van Lenten · 7 years ago v2.0.1
  3. 24cc5d0 Bump the pod version to do a release by Thomas Van Lenten · 7 years ago
  4. a8a1e5c Merge pull request #26 from thomasvl/fix_leaks by Thomas Van Lenten · 8 years ago
  5. 1570b7d Fix two leaks caught be the newer Xcode analyzer by Thomas Van Lenten · 8 years ago

Google Toolbox for Mac - HTTP Fetcher

Project site
Discussion group

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

NOTE: Because NSURLConnection is deprecated as of iOS 9 and OS X 10.11, this class has been superseded by GTMSessionFetcher.

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
  • Callbacks are delegate/selector pairs or blocks
  • Flexible cookie storage
  • Caching of ETagged responses, reducing overhead of redundant fetches
  • Automatic retry on errors, with exponential backoff
  • Support for generating multipart MIME upload streams
  • Easy, convenient logging of http requests and responses
  • Fully independent of other projects

To get started with GTM HTTP Fetcher and the Objective-C Client Library, read the wiki.

If you have a problem, please join the GTM discussion group or submit an issue.