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.

Leave a rating/review
Save for later
Comments
Share

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
01
Toggle description

Learn how to add Alamofire to your iOS project using Swift Package Manager, then use Alamofire to make a request and decode JSON.

Toggle description

Use Alamofire to send POST requests with data in the request body.

Toggle description

Learn how to handle errors and failed requests, then use Alamofire's validation to set expectations for successful requests.

Toggle description

Send requests to protected endpoints with both HTTP Basic authentication and bearer authentication with a token.

Toggle description

Use Alamofire to upload files to an endpoint from your iOS device using multipart form data.

Toggle description

Use Alamofire to download files and images from the internet and either save them locally or use them for outgoing requests.

Toggle description

Write Swiftier code for working with Alamofire and endpoints. Stop using Strings when working with Alamofire and make it type-safe.

Toggle description

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.

Toggle description

Learn how to leverage Alamofire to implement certificate pinning to prevent man-in-the-middle-attacks.

Toggle description

Use Alamofire to retry requests when needed, such as hitting an API limit or using an access token that's expired.