Skip to content

Instantly share code, notes, and snippets.

@Air-Craft
Created February 10, 2015 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Air-Craft/67b25faa9d6470daa079 to your computer and use it in GitHub Desktop.
Save Air-Craft/67b25faa9d6470daa079 to your computer and use it in GitHub Desktop.
Get the HTTP Headers from an NSURLSessionDataTask #ios #networking #API #basic
NSHTTPURLResponse *response = ((NSHTTPURLResponse *)[task response]);
NSDictionary *headers = [response allHeaderFields];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment