Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在使用 Xcode 7.0.5 和自签名证书时遇到问题(我认为)。我想知道是否有任何 Alamofire swift-2.0 分支测试用例涵盖自签名证书?
Alamofire 测试套件中存在的大多数证书实际上是自签名证书。它完全按照您的预期工作。
所有编写的数据任务测试都可以通过切换名称和提供destination参数轻松转换为下载任务测试。这会将数据下载到临时文件中,而不是将其读入内存。否则,它们或多或少是相同的操作。
destination
此外,所有服务器信任挑战都由相同的ServerTrustPolicy. Data,Download并且Upload请求都以相同的方式处理。
ServerTrustPolicy
Data
Download
Upload
祝你好运。