Performing POST and file upload requests using URLSession
How URLSession can be used to perform POST requests and file uploads without any third party libraries.
Articles, podcasts and news about Swift development, by John Sundell.
How URLSession can be used to perform POST requests and file uploads without any third party libraries.
How networking code can be tested without needing to introduce complex abstractions within our production code, by using system-provided APIs for overriding and mocking various kinds of requests.
A few different techniques that can help us share common networking logic, while also utilizing Swift’s advanced type system to make that kind of code more robust.
Christian Selig, creator of the Apollo Reddit app, joins John to talk about building apps against third party APIs, and what sort of criteria an app needs to meet to be considered a “good platform citizen”. Also, REST vs GraphQL, architecting API clients, and more.
In this video, we’ll take a look at three different ways to manage the URLs and server endpoints that a Swift app is communicating with, and the sort of pros and cons that come with each approach.
Tim Condon, server-side Swift developer, writer and conference organizer, joins John to talk about all things networking. From organizing and abstracting networking code on the client-side, to using Swift on the server, and how to combine the two in order to write Swift end-to-end.
Most apps these days need a way to download data from the Internet — whether that’s files, images, or by talking to some form of web API through a format like JSON. Let’s take a look at how to do that using Foundation’s URLSession API.
This week, let's take a look at a way of writing networking code that utilizes Apple's built-in URLSession API, while augmenting it using Futures & Promises, as well as several functional programming concepts.
Rahul Malik of Pinterest joins John to talk about working on a large-scale iOS app, using third party build systems, client/server networking architectures and much more.
This week, let's take a look at various techniques for working with URLs in Swift, how to make our URL construction code more robust, and how different kinds of URLs might warrant different approaches.
Handling asynchronous code in a way that is predictable, readable and easy to debug can be really challenging. This week, let's take a look at a technique that can make managing asynchronous calls a bit simpler and less error prone - using tokens.
In this first episode of the Swift by Sundell podcast — John gives an introduction to the show’s concept and answers the first set of questions, submitted by members of the Swift community.