I am using Moya in my swift app for network requests.
I am able to get requests and map the result using Moya- Object Mapper.
I have used alamofire earlier and I
The easiest way to get response headers in Moya is
switch result { case let .success(moyaResponse): if(moyaResponse.statusCode == 200) { let response = moyaResponse.response let responseHeaderDictionary = response?.allHeaderFields } }