Skip to content
main
Switch branches/tags
Code

Latest commit

Address static analysis nullability violation finding from Xcode 13.1.

The analysis was pointing out how nil was implicitly being passed as a nonnull parameter in the case of malformed MIME parts. Given the API does not declare `nil` to be a possible value, while some code could conceivably be checking that as indicative of malformed data, I felt it better to provide a valid, empty `NSData` body to `GTMMIMEDocumentPart` rather than violate the API contract. Updated comments to clarify this behavior, and adjusted the invalid part test.
a6b0571

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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