Advanced Networking with URLSession [SUBSCRIBER]
source link: https://www.raywenderlich.com/32317111-advanced-networking-with-urlsession
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Upload Data, Background Downloads & WebSockets
Introduction
1:40 FreeIntroduction to the Advanced Networking with URLSession course.
Install Vapor
1:45Learn about Vapor, the open-source server written in Swift, and how to install it locally for the next episode.
Upload Data
14:43Learn how to upload data to your local Vapor instance.
Background Downloads
9:21Learn about background tasks and how to use one to handle background events.
Understand Sockets
4:18Provide viewers with an overview of BSD sockets and explain how Apple’s networking framework works.
Connect to a WebSocket
10:14Use the WebSocket task to connect to a local Vapor server in order to send messages in real-time. You will, essentially, create a very small and simple chat server.
Conclusion
0:37Wrap up the first part of the course and review the learned contents.
Authentication, Cookies & App Transport Security
Introduction
0:47Introduction to part 2 of the Advanced Networking with URLSession course.
Learn about the different ways to authenticate, and provide authentication, when working with URLSession.
iOS tends to be quite strict when it comes to security, specially when making network requests. Learn about App Transport Security and how it can affect your network requests.
Work With Cookies
6:37Learn about cookies and their role in networking. You’ll also work with cookies.
In this challenge, you’ll use the knowledge gained in the previous episode to print not just one, but all of the cookies available to you from your request.
Conclusion
1:46Wrap up the course and review the learned contents.
Who is this for?
Intermediate developers. You should be comfortable with the Swift programming language.
You’ll start by uploading data, then you’ll learn how to make background network requests. Later, you’ll learn how to work with sockets, how to make authenticated requests, and about App Transport Security.
Finaly, you’ll learn how to work with cookies.
Covered concepts
- URLSession
- Uploading Files
- Vapor
- Background Downloads
- Authentication
- Sockets
- WebSockets
- App Transport Security
- Cookies
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK