CFNetworking should provide compressed data size of response (layer 5)
| Originator: | taquitos | ||
| Number: | rdar://26850580 | Date Originated: | 6/16/2016 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | |
| Classification: | Enhancement | Reproducible: | N/A |
Summary: NSURLSession provides call backs for body data that contains the uncompressed data size. I would love it for the new NSURLSessionMetrics to provide the compressed data size along with the uncompressed data size. It would be useful as I'm writing a framework for Twitter to help us understand what our customers are experiencing and how they are being impacted by network performance. The new iOS 10 metrics API is great, but it's lacking this key data insight. We need to know the size of the data that our app receives across the wire before CFNetworking decompresses it. Steps to Reproduce: No report steps, enhancement Expected Results: I expect to have access to the size of the body data received, both compressed and uncompressed. Actual Results: I don't have either, unless I keep an accumulator in a NSURLSessionDelegate instance. This only gets me uncompressed size, which for our purposes, is not very useful. Version: iOS 7 and UP Notes: Configuration: All iOS
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!