There are still some apps that need no connection to the World Wide Web, though I'm not sure I have used many of them this week. The System Preferences app, that's all I can think of right now.
It's probably fair to say for all of us, that networking is an indispensable part of our toolkit as developers. Doing Mac OS means doing networking. Fortunately, Foundation Kit's URLSession framework provides us with a rich set of classes that take us well beyond the basics of Internet connectivity.
The following topics are covered in this chapter:
- URLSession's patterns for asynchronous downloads
- Creating a test server on your machine
- Simple HTTP requests using closures
- Customizing sessions, requests, and download tasks
- Using session delegates to interface with the OS
- Monitoring a download's progress
- Cancelling, suspending, and resuming downloads
This chapter...