Alamofire
Learn the ins and outs of Alamofire from making requests to uploading files and how to pin certificates. This course uses Alamofire 5. By Tim Condon.
Who is this for?
iOS developers who can write simple iOS applications but want to make apps that need more complex API calls. The course expects you to be familar with Xcode, Swift, and building iOS applications. Familiarity with URLSession would be helpful but is not required.
Covered concepts
- Installing Alamofire with Swift Package Manager
- Sending requests for POST and GET
- Encoding and decoding JSON in requests and responses
- Error handling
- Authenticated requests and certificate pinning
- Caching
- Retrying requests
Learn how to add Alamofire to your iOS project using Swift Package Manager, then use Alamofire to make a request and decode JSON.
Use Alamofire to send POST requests with data in the request body.
Learn how to handle errors and failed requests, then use Alamofire's validation to set expectations for successful requests.
Send requests to protected endpoints with both HTTP Basic authentication and bearer authentication with a token.
Use Alamofire to upload files to an endpoint from your iOS device using multipart form data.
Use Alamofire to download files and images from the internet and either save them locally or use them for outgoing requests.
Write Swiftier code for working with Alamofire and endpoints. Stop using Strings when working with Alamofire and make it type-safe.
Learn the basics of certificate pinning, what it is and why to use it. Use OpenSSL to get the TLS certificates used by your app.
Learn how to leverage Alamofire to implement certificate pinning to prevent man-in-the-middle-attacks.
Use Alamofire to retry requests when needed, such as hitting an API limit or using an access token that's expired.