Alamofire is a Swift package for HTTP requests, response handling, uploads, downloads, and connection security. It targets Apple platforms and is distributed via Swift Package Manager, CocoaPods, and Carthage.
Overview
Alamofire wraps URL session-style networking for Swift applications with chainable request and response APIs. It supports URL and JSON parameter encoding, multipart uploads, file download with resume data, credential-based authentication, response validation, and progress callbacks for transfers.
The library adds Swift concurrency and Combine integrations, request adaptation with automatic retry, TLS certificate and public-key pinning, reachability checks, and optional cURL command output for debugging. Additional component libraries from the same foundation extend the ecosystem beyond core HTTP.
It is fully exercised on iOS, macOS, tvOS, and watchOS. Builds exist for Linux, Windows, and Android via Swift Package Manager, though pinning, caching, some authentication modes, metrics, and WebSockets are limited or missing on those platforms.
Key features
- Chainable request and response APIs
- Swift concurrency and Combine support
- Multipart and file upload/download
- TLS certificate and public key pinning
- Automatic request adapt and retry
- Network reachability monitoring
- HTTP response validation
- Upload and download progress hooks
Use cases
- REST clients in iOS apps
- Authenticated API integrations
- Large file upload and download
- Secured mobile backend communication
- Shared networking layer in Swift codebases