Q1 With the iOS App kit, can I expect that Accept-Encoding: gzip
will be used automatically, or do I need to explicitly ask for it to be used by setting this in the URL request somewhere?
I'm currently using the call [NSData dataWithContentsOfURL: url]
, although I am likely to change over to specifically setting up an NSURLSession – is this likely to automatically request gzip encoding?
Q2 Also, if it is used and the server obliges with gzip-ed content, am I correct that the client side will automatically decode the compressed content transparently so that I don't need to?