![Alamofire: Elegant Networking in Swift](https://raw.githubusercontent.com/Alamofire/Alamofire/master/Resources/AlamofireLogo.png)
[![Swift](https://img.shields.io/badge/Swift-5.1_5.2_5.3_5.4-orange?style=flat-square)](https://img.shields.io/badge/Swift-5.1_5.2_5.3_5.4-Orange?style=flat-square)
[![Platforms](https://img.shields.io/badge/Platforms-macOS_iOS_tvOS_watchOS_Linux_Windows-yellowgreen?style=flat-square)](https://img.shields.io/badge/Platforms-macOS_iOS_tvOS_watchOS_Linux_Windows-Green?style=flat-square)
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Alamofire.svg?style=flat-square)](https://img.shields.io/cocoapods/v/Alamofire.svg)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat-square)](https://github.com/Carthage/Carthage)
[![Swift Package Manager](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)
[![Twitter](https://img.shields.io/badge/twitter-@AlamofireSF-blue.svg?style=flat-square)](https://twitter.com/AlamofireSF)
[![Swift Forums](https://img.shields.io/badge/Swift_Forums-Alamofire-orange?style=flat-square)](https://forums.swift.org/c/related-projects/alamofire/37)
Alamofire is an HTTP networking library written in Swift.
- [Features](#features)
- [Component Libraries](#component-libraries)
- [Requirements](#requirements)
- [Migration Guides](#migration-guides)
- [Communication](#communication)
- [Installation](#installation)
- [Usage](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#using-alamofire)
- [**Introduction -**](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#introduction) [Making Requests](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#making-requests), [Response Handling](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-handling), [Response Validation](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-validation), [Response Caching](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-caching)
- **HTTP -** [HTTP Methods](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#http-methods), [Parameters and Parameter Encoder](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md##request-parameters-and-parameter-encoders), [HTTP Headers](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#http-headers), [Authentication](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#authentication)
- **Large Data -** [Downloading Data to a File](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#downloading-data-to-a-file), [Uploading Data to a Server](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#uploading-data-to-a-server)
- **Tools -** [Statistical Metrics](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#statistical-metrics), [cURL Command Output](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#curl-command-output)
- [Advanced Usage](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md)
- **URL Session -** [Session Manager](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#session), [Session Delegate](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#sessiondelegate), [Request](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#request)
- **Routing -** [Routing Requests](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#routing-requests), [Adapting and Retrying Requests](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#adapting-and-retrying-requests-with-requestinterceptor)
- **Model Objects -** [Custom Response Handlers](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#customizing-response-handlers)
- **Connection -** [Security](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#security), [Network Reachability](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#network-reachability)
- [Open Radars](#open-radars)
- [FAQ](#faq)
- [Credits](#credits)
- [Donations](#donations)
- [License](#license)
## Features
- [x] Chainable Request / Response Methods
- [x] Combine Support
- [x] URL / JSON Parameter Encoding
- [x] Upload File / Data / Stream / MultipartFormData
- [x] Download File using Request or Resume Data
- [x] Authentication with `URLCredential`
- [x] HTTP Response Validation
- [x] Upload and Download Progress Closures with Progress
- [x] cURL Command Output
- [x] Dynamically Adapt and Retry Requests
- [x] TLS Certificate and Public Key Pinning
- [x] Network Reachability
- [x] Comprehensive Unit and Integration Test Coverage
- [x] [Complete Documentation](https://alamofire.github.io/Alamofire)
## Component Libraries
In order to keep Alamofire focused specifically on core networking implementations, additional component libraries have been created by the [Alamofire Software Foundation](https://github.com/Alamofire/Foundation) to bring additional functionality to the Alamofire ecosystem.
- [AlamofireImage](https://github.com/Alamofire/AlamofireImage) - 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.
- [AlamofireNetworkActivityIndicator](https://github.com/Alamofire/AlamofireNetworkActivityIndicator) - 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.
## Requirements
| Platform | Minimum Swift Version | Installation | Status |
| --- | --- | --- | --- |
| iOS 10.0+ / macOS 10.12+ / tvOS 10.0+ / watchOS 3.0+ | 5.1 | [CocoaPods](#cocoapods), [Carthage](#carthage), [Swift Package Manager](#swift-package-manager), [Manual](#manually) | Fully Tested |
| Linux | Latest Only | [Swift Package Manager](#swift-package-manager) | Building But Unsupported |
| Windows | Latest Only | [Swift Package Manager](#swift-package-manager) | Building But Unsupported |
#### Known Issues on Linux and Windows
Alamofire builds on Linux and Windows but there are missing features and many issues in the underlying `swift-corelibs-foundation` that prevent full functionality and may cause crashes. These include:
- `ServerTrustManager` and associated certificate functionality is unavailable, so there is no certificate pinning and no client certificate support.
- Various methods of HTTP authentication may crash, including HTTP Basic and HTTP Digest. Crashes may occur if responses contain server challenges.
- Cache control through `CachedResponseHandler` and associated APIs is unavailable, as the underlying delegate methods aren't called.
- `URLSessionTaskMetrics` are never gathered.
Due to these issues, Alamofire is unsupported on Linux and Windows. Please report any crashes to the [Swift bug reporter](https://bugs.swift.org).
## Migration Guides
- [Alamofire 5.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%205.0%20Migration%20Guide.md)
- [Alamofire 4.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%204.0%20Migration%20Guide.md)
- [Alamofire 3.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%203.0%20Migration%20Guide.md)
- [Alamofire 2.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%202.0%20Migration%20Guide.md)
## Communication
- If you
没有合适的资源?快使用搜索试试~ 我知道了~
(Swift)Alamofire下载文件
共174个文件
swift:74个
plist:10个
xcconfig:6个
需积分: 0 4 下载量 34 浏览量
2022-07-12
20:21:23
上传
评论
收藏 452KB ZIP 举报
温馨提示
(Swift)Alamofire下载文件
资源详情
资源评论
资源推荐
收起资源包目录
(Swift)Alamofire下载文件 (174个子文件)
0d615a2412ef68bd21674af036c55ca3c995a6 153B
21b9bb1a35f5de270a41afa01305478221ae32 253B
3257a7d00cc51c19d02d81f119c077049b2d74 249B
386387f266d1ccf6459cb4400cbeed9e600bd3 58B
5c1c4280c2bd849cc7cb98bdb954becd44ca2b 3KB
5d69dba1c41e974f99ba962e0236ff89fb53e7 39KB
5e9329f3767a7c1dd66294b8025bf81dee7d2c 781B
5ea707fa02e101d7fecd628c06ba0e38b66fa5 122B
6176cde812298a59677ebd9e6ef4d9fb9ca33a 205B
67aeb311a2232d32af22ad381071d64e5f461e 590B
6bd324c26d854187559f27f8194c8afd1795ac 58B
714c4a9ec0ddb7f4a80179602c953e671cb66b 96B
82b52fc1cea66f055b851dea6f5821a8917282 246B
8789700816459c1e1480e0b34781d9fb78a1ca 105B
9119b32a564e275f53120c942ecf9d75214b53 86B
9434a6254f0e9651f402737811be6634a03e9c 117B
9535d1d1dd3247bcfaad90dac9200d3c88b77b 140B
9a4208174846971cd5a193fa79346f355073f8 97B
9d18d9afdbb632b5baf450c966f30d5e78e0c0 140B
9df098625f128382071ae9707970fe8a086464 95B
a553e4c7ed3909688918c0f869e3e996856513 151B
a763858ecdbea5c897a9fd8fa2225d7223d2ad 749B
c00596a7fca3f3d4bdd64053b69d86745f9e10 66B
c19cc17a1d6452956495c8f392c3673f08a9eb 69B
COMMIT_EDITMSG 15B
config 137B
d77164ac2ea427d660410256d5d496e9483515 941B
de8039d81dd49f7e3e32fd426e90ca691c03a0 193B
description 73B
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
ee8f9f49389ba58d22df8e18589600866a8a16 366B
exclude 40B
f8b4583a1af3a53d55ec726a5ed0edbd699601 97B
Pods-SwiftDemol-umbrella.h 322B
Alamofire-umbrella.h 310B
SnapKit-umbrella.h 306B
HEAD 162B
HEAD 21B
index 2KB
example.jpg 43KB
Contents.json 2KB
Contents.json 305B
Contents.json 123B
Contents.json 63B
LICENSE 1KB
LICENSE 1KB
Podfile.lock 343B
Manifest.lock 343B
Pods-SwiftDemol-dummy.m 134B
Alamofire-dummy.m 122B
SnapKit-dummy.m 118B
main 162B
main 41B
Pods-SwiftDemol-acknowledgements.markdown 2KB
README.md 15KB
README.md 3KB
Pods-SwiftDemol.modulemap 120B
Alamofire.modulemap 108B
SnapKit.modulemap 104B
project.pbxproj 75KB
project.pbxproj 18KB
Alamofire-prefix.pch 195B
SnapKit-prefix.pch 195B
Pods-SwiftDemol-acknowledgements.plist 3KB
Pods-SwiftDemol-Info.plist 828B
Alamofire-Info.plist 828B
SnapKit-Info.plist 828B
xcschememanagement.plist 687B
xcschememanagement.plist 345B
Info.plist 304B
IDEWorkspaceChecks.plist 238B
IDEWorkspaceChecks.plist 238B
IDEFindNavigatorScopes.plist 182B
Podfile 176B
README.sample 177B
Pods-SwiftDemol-frameworks.sh 8KB
LaunchScreen.storyboard 2KB
Main.storyboard 2KB
Request.swift 77KB
Session.swift 69KB
ResponseSerialization.swift 57KB
EventMonitor.swift 44KB
URLEncodedFormEncoder.swift 40KB
AFError.swift 37KB
Combine.swift 33KB
ServerTrustEvaluation.swift 30KB
MultipartFormData.swift 22KB
Response.swift 21KB
RetryPolicy.swift 20KB
AuthenticationInterceptor.swift 20KB
HTTPHeaders.swift 15KB
SessionDelegate.swift 15KB
Constraint.swift 13KB
ParameterEncoding.swift 13KB
Validation.swift 12KB
NetworkReachabilityManager.swift 11KB
RequestInterceptor.swift 10KB
共 174 条
- 1
- 2
冯汉栩
- 粉丝: 241
- 资源: 469
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0