From the Internet I read that URLRequest
sends an "Accept-Encoding" header by default.
I also read that URLSession
auto decompresses any data that’s returned compressed. However this information is what an internet post says. I want to read this information in the official Apple docs. I visit the docs and read about URLSession
& URLRequest
. However I can’t find where it says, to confirm what I read on the internet, that it does send the "Accept-Encoding" headers by default or that it auto decompresses compressed data. I know it does the latter as I am able to parse compressed data and have to do nothing to decompress. Just tell me where this stuff is documented by Apple so I can read about it.
Thanks
Asked
Active
Viewed 194 times
1

RyanTCB
- 7,400
- 5
- 42
- 62
-
Didn’t realise I had. Thanks for pointing it out. Will delete other – RyanTCB Aug 12 '17 at 08:32