默认情况下 Alamofire 是否请求压缩响应?

Does Alamofire by default request for gzipped response?

我在我的项目中使用 Alamofire 进行联网。因为我的服务器支持压缩响应。我想知道 Alamofire 本身是否支持 gzip,还是我需要在其 header 中专门设置为 ["Accept-Encoding":"gzip"]。 我尝试了这两种情况,但没有发现响应大小有任何差异。 所以我假设它默认请求 gzip 响应。 关于此主题的任何说明都会有用。

是否还有一种方法可以使用 Alamofire 检查原始响应?

Alamofire 自己处理,不需要做任何事情... 你可以在这里找到更多: https://github.com/Alamofire/Alamofire/issues/256