Lay the groundwork for network communication in your iOS apps! You’ll explore network connections, learn to send and receive data from servers, and transform that data into useful information for your app.
By Marc Aupont.
This lesson introduces fundamental network concepts including what a network request is, the client-server model, HTTP protocol basics, and the structure of RESTful APIs.
This lesson teaches students how to build network requests using URLSession.
This includes creating a URLSession configuration, creating a URLRequest, and handling the URLSessionDataTask to send and receive data.
In this lesson you will evaluate the HTTP status codes returned from the server to determine if the request was successful or not. Once the status has been identified, the next step will be to handle the corresponding error codes if there are any. Lastly, you will be guided through the process of decoding JSON responses and converting into Swift objects.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.