Latest 2.0.0
Homepage https://github.com/google/gtm-http-fetcher
License Apache
Platforms ios 4.0, osx 10.6

Google Toolbox for Mac – HTTP Fetcher

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

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.

Latest podspec

{
    "name": "GTMHTTPFetcher",
    "version": "2.0.0",
    "authors": "Google Inc.",
    "license": {
        "type": "Apache",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/google/gtm-http-fetcher",
    "source": {
        "git": "https://github.com/google/gtm-http-fetcher.git",
        "tag": "v2.0.0"
    },
    "summary": "Google Toolbox for Mac - HTTP Fetcher",
    "description": "GTMHTTPFetcher makes it easy for Cocoa applications tonperform http operations. The fetcher is implemented as anwrapper on NSURLConnection, so its behavior is asynchronousnand uses operating-system settings on iOS and Mac OS X.",
    "platforms": {
        "ios": "4.0",
        "osx": "10.6"
    },
    "requires_arc": false,
    "subspecs": [
        {
            "name": "Fetcher",
            "source_files": "Source/GTMHTTPFetcher.{h,m}"
        },
        {
            "name": "Logging",
            "source_files": "Source/GTMHTTPFetcherLogging.{h,m}",
            "dependencies": {
                "GTMHTTPFetcher/Fetcher": [
                    "2.0.0"
                ]
            }
        },
        {
            "name": "LogViewController",
            "platforms": {
                "ios": "4.0"
            },
            "source_files": "Source/GTMHTTPFetcherLogViewController.{h,m}",
            "dependencies": {
                "GTMHTTPFetcher/Logging": [
                    "2.0.0"
                ]
            }
        },
        {
            "name": "MIME",
            "source_files": [
                "Source/GTMMIMEDocument.{h,m}",
                "Source/GTMGatherInputStream.{h,m}"
            ],
            "dependencies": {
                "GTMHTTPFetcher/Fetcher": [
                    "2.0.0"
                ]
            }
        },
        {
            "name": "ResumableUpload",
            "source_files": "Source/GTMHTTPUploadFetcher.{h,m}",
            "dependencies": {
                "GTMHTTPFetcher/Fetcher": [
                    "2.0.0"
                ],
                "GTMHTTPFetcher/Service": [
                    "2.0.0"
                ]
            }
        },
        {
            "name": "Service",
            "source_files": [
                "Source/GTMHTTPFetcherService.{h,m}",
                "Source/GTMHTTPFetchHistory.{h,m}"
            ],
            "dependencies": {
                "GTMHTTPFetcher/Fetcher": [
                    "2.0.0"
                ]
            }
        }
    ]
}

Pin It on Pinterest

Share This