Hi,
I'm wondering how can I get the response headers ? e.g access_token or content-type
Thanks,
Ravi.
I also met the same problem, @Ravichandrane can you tell me is how to solve.
@iiiyu On your success you just need to do that :
if let httpResponse = value.response as? NSHTTPURLResponse {
debugPrint(httpResponse.allHeaderFields)
}
@Ravichandrane Thanks for your reply.
MoyaProvider is work.
But RxMoyaProvider response is NSURLResponse.
So I don't use RxMoyaProvider.
Thanks again.
What is the way to do this with reactive extensions?
Most helpful comment
@iiiyu On your success you just need to do that :