Skip to content

Conversation

@atomicbird
Copy link

I've added a few features and made some improvements to ZSURLConnectionDelegate:

  • Incoming data is saved to a file instead of being held in memory. If filePath has been set then it is used, otherwise a temporary file is created and later cleaned up.
  • File writes are done asynchronously on a GCD queue while the network connection is still running.
  • Self-signed certificates can now be accepted either from all hosts or from a specific list of hosts.
  • Can be initialized with an NSURLRequest instead of an NSURL, so that request headers can be set (old initializers are still present).
  • New convenience initializers.
  • Optional userInfo property.

This also changes the asset manager demo app, fixing memory issues and getting it to load photos found in the RSS feed and display thumbnails in the table view.

atomicbird added 12 commits May 16, 2011 18:10
…oc() in GDataXMLDocument's dealloc. With the result that releasing "document" in -feedDownloadSuccessful: means that there's no more data for the table view to display by the time it tries to look through its items.
…ion to set headers and POST body. Add support for self-signed HTTPS certificates. Add userInfo parameter.
…sly while the network connection loads, and a dispatch group is used to ensure all writes finish.
…ing while waiting for file writes to finish on another queue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant