It doesn’t seem like there’s any high level, first-party documentation on how to use what is the recommended API for executing networking logic that you otherwise wouldn’t use URLSession for; which is a lot of things.
There’s a sample app, and docs on how to choose the right network API in general, but apparently no high level API docs for Network.framework itself. Am I missing something? How do people learn to use this? Know which classes to use? Know the various ways it can be configured?
No. Network framework has good API-level documentation [1] but it’s rather lacking when it comes to introductory material.
There are, however, a few helpful samples. I’ve just updated Networking Resources with links to them. And that has a lot of other helpful links besides.
I’ve also answered a tonne of Network framework questions here on the forums, so it’s always worth searching here.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] Although in some cases you’ll find critical titbits in the doc comments in the C headers.