0

I am migrating my code from AFNetworking 2.x to 3.0.

In AFNetworking 2.x

AFHTTPRequestOPeration *requestOperation;
self.formHash = requestOperation.request.allHTTPHeaderFields[@"FormHash"];

Would anyone help me to implement what is the alternative to fetch allHTTPHeaderFields in AFNerworking 3.0

iPhone
  • 4,092
  • 3
  • 34
  • 58

1 Answers1

0

You can use it like this : NSDictionary fields = ((NSHTTPURLResponse)response).allHeaderFields;

安Alex
  • 11
  • 1