[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-1113":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":22,"topics":23,"createdAt":9,"pushedAt":9,"updatedAt":39,"readmeContent":40,"aiSummary":41,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":42,"discoverSource":43},1113,"Alamofire","Alamofire\u002FAlamofire","Elegant HTTP Networking in Swift","",null,"Swift",42392,7670,1043,30,0,2,26,73.6,"MIT License",false,"master",true,[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"alamofire","carthage","certificate-pinning","cocoapods","httpurlresponse","networking","parameter-encoding","public-key-pinning","request","response","swift","swift-package-manager","urlrequest","urlsession","xcode","2026-06-12 04:00:07","![Alamofire: Elegant Networking in Swift](https:\u002F\u002Fraw.githubusercontent.com\u002FAlamofire\u002FAlamofire\u002Fmaster\u002FResources\u002FAlamofireLogo.png)\n\n[![Swift](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSwift-6.0_6.1_6.2-orange?style=flat-square)](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSwift-6.0_6.1_6.2-Orange?style=flat-square)\n[![Platforms](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPlatforms-macOS_iOS_tvOS_watchOS_visionOS_Linux_Windows_Android-yellowgreen?style=flat-square)](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPlatforms-macOS_iOS_tvOS_watchOS_vision_OS_Linux_Windows_Android-Green?style=flat-square)\n[![CocoaPods Compatible](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fv\u002FAlamofire.svg?style=flat-square)](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fv\u002FAlamofire.svg)\n[![Carthage Compatible](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCarthage-compatible-4BC51D.svg?style=flat-square)](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage)\n[![Swift Package Manager](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSwift_Package_Manager-compatible-orange?style=flat-square)](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSwift_Package_Manager-compatible-orange?style=flat-square)\n[![Swift Forums](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSwift_Forums-Alamofire-orange?style=flat-square)](https:\u002F\u002Fforums.swift.org\u002Fc\u002Frelated-projects\u002Falamofire\u002F37)\n\nAlamofire is an HTTP networking library written in Swift.\n\n- [Features](#features)\n- [Component Libraries](#component-libraries)\n- [Requirements](#requirements)\n- [Migration Guides](#migration-guides)\n- [Communication](#communication)\n- [Installation](#installation)\n- [Contributing](#contributing)\n- [Usage](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#using-alamofire)\n  - [**Introduction -**](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#introduction) [Making Requests](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#making-requests), [Response Handling](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#response-handling), [Response Validation](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#response-validation), [Response Caching](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#response-caching)\n  - **HTTP -** [HTTP Methods](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#http-methods), [Parameters and Parameter Encoder](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md##request-parameters-and-parameter-encoders), [HTTP Headers](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#http-headers), [Authentication](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#authentication)\n  - **Large Data -** [Downloading Data to a File](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#downloading-data-to-a-file), [Uploading Data to a Server](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#uploading-data-to-a-server)\n  - **Tools -** [Statistical Metrics](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#statistical-metrics), [cURL Command Output](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FUsage.md#curl-command-output)\n- [Advanced Usage](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAdvancedUsage.md)\n  - **URL Session -** [Session Manager](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAdvancedUsage.md#session), [Session Delegate](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAdvancedUsage.md#sessiondelegate), [Request](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAdvancedUsage.md#request)\n  - **Routing -** [Routing Requests](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAdvancedUsage.md#routing-requests), [Adapting and Retrying Requests](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAdvancedUsage.md#adapting-and-retrying-requests-with-requestinterceptor)\n  - **Model Objects -** [Custom Response Handlers](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAdvancedUsage.md#customizing-response-handlers)\n  - **Advanced Concurrency -** [Swift Concurrency](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAdvancedUsage.md#using-alamofire-with-swift-concurrency) and [Combine](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAdvancedUsage.md#using-alamofire-with-combine)\n  - **Connection -** [Security](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAdvancedUsage.md#security), [Network Reachability](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAdvancedUsage.md#network-reachability)\n- [Open Radars](#open-radars)\n- [FAQ](#faq)\n- [Credits](#credits)\n- [Donations](#donations)\n- [License](#license)\n\n## Features\n\n- [x] Chainable Request \u002F Response Methods\n- [x] Swift Concurrency Support Back to iOS 13, macOS 10.15, tvOS 13, and watchOS 6.\n- [x] Combine Support\n- [x] URL \u002F JSON Parameter Encoding\n- [x] Upload File \u002F Data \u002F Stream \u002F MultipartFormData\n- [x] Download File using Request or Resume Data\n- [x] Authentication with `URLCredential`\n- [x] HTTP Response Validation\n- [x] Upload and Download Progress Closures with Progress\n- [x] cURL Command Output\n- [x] Dynamically Adapt and Retry Requests\n- [x] TLS Certificate and Public Key Pinning\n- [x] Network Reachability\n- [x] Comprehensive Unit and Integration Test Coverage\n- [x] [Complete Documentation](https:\u002F\u002Falamofire.github.io\u002FAlamofire)\n\n## Write Requests Fast!\n\nAlamofire's compact syntax and extensive feature set allow requests with powerful features like automatic retry to be written in just a few lines of code.\n\n```swift\n\u002F\u002F Automatic String to URL conversion, Swift concurrency support, and automatic retry.\nlet response = await AF.request(\"https:\u002F\u002Fhttpbin.org\u002Fget\", interceptor: .retryPolicy)\n                       \u002F\u002F Automatic HTTP Basic Auth.\n                       .authenticate(username: \"user\", password: \"pass\")\n                       \u002F\u002F Caching customization.\n                       .cacheResponse(using: .cache)\n                       \u002F\u002F Redirect customization.\n                       .redirect(using: .follow)\n                       \u002F\u002F Validate response code and Content-Type.\n                       .validate()\n                       \u002F\u002F Produce a cURL command for the request.\n                       .cURLDescription { description in\n                         print(description)\n                       }\n                       \u002F\u002F Automatic Decodable support with background parsing.\n                       .serializingDecodable(DecodableType.self)\n                       \u002F\u002F Await the full response with metrics and a parsed body.\n                       .response\n\u002F\u002F Detailed response description for easy debugging.\ndebugPrint(response)\n```\n\n## Component Libraries\n\nIn order to keep Alamofire focused specifically on core networking implementations, additional component libraries have been created by the [Alamofire Software Foundation](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FFoundation) to bring additional functionality to the Alamofire ecosystem.\n\n- [AlamofireImage](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofireImage) - An image library including image response serializers, `UIImage` and `UIImageView` extensions, custom image filters, an auto-purging in-memory cache, and a priority-based image downloading system.\n- [AlamofireNetworkActivityIndicator](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofireNetworkActivityIndicator) - Controls the visibility of the network activity indicator on iOS using Alamofire. It contains configurable delay timers to help mitigate flicker and can support `URLSession` instances not managed by Alamofire.\n\n## Requirements\n\n| Platform                                             | Minimum Swift Version | Installation                                                                                                         | Status                   |\n| ---------------------------------------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------- | ------------------------ |\n| iOS 10.0+ \u002F macOS 10.12+ \u002F tvOS 10.0+ \u002F watchOS 3.0+ | 6.0 \u002F Xcode 16.0      | [CocoaPods](#cocoapods), [Carthage](#carthage), [Swift Package Manager](#swift-package-manager), [Manual](#manually) | Fully Tested             |\n| Linux                                                | Latest Only           | [Swift Package Manager](#swift-package-manager)                                                                      | Building But Unsupported |\n| Windows                                              | Latest Only           | [Swift Package Manager](#swift-package-manager)                                                                      | Building But Unsupported |\n| Android                                              | Latest Only           | [Swift Package Manager](#swift-package-manager)                                                                      | Building But Unsupported |\n\n#### Known Issues on Linux and Windows\n\nAlamofire builds on Linux, Windows, and Android but there are missing features and many issues in the underlying `swift-corelibs-foundation` that prevent full functionality and may cause crashes. These include:\n\n- `ServerTrustManager` and associated certificate functionality is unavailable, so there is no certificate pinning and no client certificate support.\n- Various methods of HTTP authentication may crash, including HTTP Basic and HTTP Digest. Crashes may occur if responses contain server challenges.\n- Cache control through `CachedResponseHandler` and associated APIs is unavailable, as the underlying delegate methods aren't called.\n- `URLSessionTaskMetrics` are never gathered.\n- `WebSocketRequest` is not available.\n\nDue to these issues, Alamofire is unsupported on Linux, Windows, and Android. Please report any crashes to the [Swift bug reporter](https:\u002F\u002Fbugs.swift.org).\n\n## Migration Guides\n\n- [Alamofire 5.0 Migration Guide](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAlamofire%205.0%20Migration%20Guide.md)\n- [Alamofire 4.0 Migration Guide](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAlamofire%204.0%20Migration%20Guide.md)\n- [Alamofire 3.0 Migration Guide](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAlamofire%203.0%20Migration%20Guide.md)\n- [Alamofire 2.0 Migration Guide](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FDocumentation\u002FAlamofire%202.0%20Migration%20Guide.md)\n\n## Communication\n\n- If you **need help with making network requests** using Alamofire, use [Stack Overflow](https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002Ftagged\u002Falamofire) and tag `alamofire`.\n- If you need to **find or understand an API**, check [our documentation](http:\u002F\u002Falamofire.github.io\u002FAlamofire\u002F) or [Apple's documentation for `URLSession`](https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Ffoundation\u002Furl_loading_system), on top of which Alamofire is built.\n- If you need **help with an Alamofire feature**, use [our forum on swift.org](https:\u002F\u002Fforums.swift.org\u002Fc\u002Frelated-projects\u002Falamofire).\n- If you'd like to **discuss Alamofire best practices**, use [our forum on swift.org](https:\u002F\u002Fforums.swift.org\u002Fc\u002Frelated-projects\u002Falamofire).\n- If you'd like to **discuss a feature request**, use [our forum on swift.org](https:\u002F\u002Fforums.swift.org\u002Fc\u002Frelated-projects\u002Falamofire).\n- If you **found a bug**, open an issue here on GitHub and follow the guide. The more detail the better!\n\n## Installation\n\n### Swift Package Manager\n\nThe [Swift Package Manager](https:\u002F\u002Fswift.org\u002Fpackage-manager\u002F) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler.\n\nOnce you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift` or the Package list in Xcode.\n\n```swift\ndependencies: [\n    .package(url: \"https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire.git\", .upToNextMajor(from: \"5.11.0\"))\n]\n```\n\nNormally you'll want to depend on the `Alamofire` target:\n\n```swift\n.product(name: \"Alamofire\", package: \"Alamofire\")\n```\n\nBut if you want to force Alamofire to be dynamically linked (do not do this unless you're sure you need it), you can depend on the `AlamofireDynamic` target:\n\n```swift\n.product(name: \"AlamofireDynamic\", package: \"Alamofire\")\n```\n\n### CocoaPods\n\n[CocoaPods](https:\u002F\u002Fcocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Alamofire into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\npod 'Alamofire'\n```\n\n### Carthage\n\n[Carthage](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate Alamofire into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"Alamofire\u002FAlamofire\"\n```\n\n### Manually\n\nIf you prefer not to use any of the aforementioned dependency managers, you can integrate Alamofire into your project manually.\n\n#### Embedded Framework\n\n- Open up Terminal, `cd` into your top-level project directory, and run the following command \"if\" your project is not initialized as a git repository:\n\n  ```bash\n  $ git init\n  ```\n\n- Add Alamofire as a git [submodule](https:\u002F\u002Fgit-scm.com\u002Fdocs\u002Fgit-submodule) by running the following command:\n\n  ```bash\n  $ git submodule add https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire.git\n  ```\n\n- Open the new `Alamofire` folder, and drag the `Alamofire.xcodeproj` into the Project Navigator of your application's Xcode project.\n\n  > It should appear nested underneath your application's blue project icon. Whether it is above or below all the other Xcode groups does not matter.\n\n- Select the `Alamofire.xcodeproj` in the Project Navigator and verify the deployment target matches that of your application target.\n- Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the \"Targets\" heading in the sidebar.\n- In the tab bar at the top of that window, open the \"General\" panel.\n- Click on the `+` button under the \"Embedded Binaries\" section.\n- You will see two different `Alamofire.xcodeproj` folders each with two different versions of the `Alamofire.framework` nested inside a `Products` folder.\n\n  > It does not matter which `Products` folder you choose from, but it does matter whether you choose the top or bottom `Alamofire.framework`.\n\n- Select the top `Alamofire.framework` for iOS and the bottom one for macOS.\n\n  > You can verify which one you selected by inspecting the build log for your project. The build target for `Alamofire` will be listed as `Alamofire iOS`, `Alamofire macOS`, `Alamofire tvOS`, or `Alamofire watchOS`.\n\n- And that's it!\n\n  > The `Alamofire.framework` is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device.\n\n## Contributing\n\nBefore contributing to Alamofire, please read the instructions detailed in our [contribution guide](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md).\n\n## Open Radars\n\nThe following radars have some effect on the current implementation of Alamofire.\n\n- [`rdar:\u002F\u002F21349340`](http:\u002F\u002Fwww.openradar.me\u002Fradar?id=5517037090635776) - Compiler throwing warning due to toll-free bridging issue in the test case\n- `rdar:\u002F\u002F26870455` - Background URL Session Configurations do not work in the simulator\n- `rdar:\u002F\u002F26849668` - Some URLProtocol APIs do not properly handle `URLRequest`\n\n## Resolved Radars\n\nThe following radars have been resolved over time after being filed against the Alamofire project.\n\n- [`rdar:\u002F\u002F26761490`](http:\u002F\u002Fwww.openradar.me\u002Fradar?id=5010235949318144) - Swift string interpolation causing memory leak with common usage.\n  - (Resolved): 9\u002F1\u002F17 in Xcode 9 beta 6.\n- [`rdar:\u002F\u002F36082113`](http:\u002F\u002Fopenradar.appspot.com\u002Fradar?id=4942308441063424) - `URLSessionTaskMetrics` failing to link on watchOS 3.0+\n  - (Resolved): Just add `CFNetwork` to your linked frameworks.\n- `FB7624529` - `urlSession(_:task:didFinishCollecting:)` never called on watchOS\n  - (Resolved): Metrics now collected on watchOS 7+.\n\n## FAQ\n\n### What's the origin of the name Alamofire?\n\nAlamofire is named after the [Alamo Fire flower](https:\u002F\u002Faggie-horticulture.tamu.edu\u002Fwildseed\u002Falamofire.html), a hybrid variant of the Bluebonnet, the official state flower of Texas.\n\n## Credits\n\nAlamofire is owned and maintained by the [Alamofire Software Foundation](http:\u002F\u002Falamofire.org). You can follow them on Twitter at [@AlamofireSF](https:\u002F\u002Ftwitter.com\u002FAlamofireSF) for project updates and releases.\n\n### Security Disclosure\n\nIf you believe you have identified a security vulnerability with Alamofire, you should report it as soon as possible via email to security@alamofire.org. Please do not post it to a public issue tracker.\n\n## Sponsorship\n\nThe [ASF](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FFoundation#members) is looking to raise money to officially stay registered as a federal non-profit organization.\nRegistering will allow Foundation members to gain some legal protections and also allow us to put donations to use, tax-free.\nSponsoring the ASF will enable us to:\n\n- Pay our yearly legal fees to keep the non-profit in good status\n- Pay for our mail servers to help us stay on top of all questions and security issues\n- Potentially fund test servers to make it easier for us to test the edge cases\n- Potentially fund developers to work on one of our projects full-time\n\nThe community adoption of the ASF libraries has been amazing.\nWe are greatly humbled by your enthusiasm around the projects and want to continue to do everything we can to move the needle forward.\nWith your continued support, the ASF will be able to improve its reach and also provide better legal safety for the core members.\nIf you use any of our libraries for work, see if your employers would be interested in donating.\nAny amount you can donate, whether once or monthly, to help us reach our goal would be greatly appreciated.\n\n[Sponsor Alamofire](https:\u002F\u002Fgithub.com\u002Fsponsors\u002FAlamofire)\n\n## Supporters\n\n[MacStadium](https:\u002F\u002Fmacstadium.com) provides Alamofire with a free, hosted Mac mini.\n\n![Powered by MacStadium](https:\u002F\u002Fraw.githubusercontent.com\u002FAlamofire\u002FAlamofire\u002Fmaster\u002FResources\u002FMacStadiumLogo.png)\n\n## License\n\nAlamofire is released under the MIT license. [See LICENSE](https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire\u002Fblob\u002Fmaster\u002FLICENSE) for details.\n","Alamofire 是一个用 Swift 编写的优雅 HTTP 网络库。它支持多种 HTTP 方法、参数编码、认证机制以及响应处理，包括缓存和验证功能。此外，Alamofire 还提供了强大的工具来处理大数据下载与上传，并且能够生成网络请求的统计指标。适用于 macOS、iOS、tvOS、watchOS 以及其他平台上的应用程序开发，特别适合需要高效、灵活地处理网络请求的 iOS 和 macOS 项目。其简洁的 API 设计使得开发者可以轻松集成并使用该库进行网络操作。","2026-06-11 02:41:43","top_all"]