ios - how to find out whether nsurclconnection's encoding is gzip'ed or not -
is there way figure out whether nsurlconnection gzip , not typical one, because want compare differences in times. thanks,
in nsurlconnectiondatadelegate method -connection:didreveiveresponse: can check header fields content-encoding like:
- (void)connection:(nsurlconnection *)connection didreceiveresponse:(nsurlresponse *)response { nslog(@"%@", (nshttpurlresponse *)response allheaderfields]); } ios http gzip nsurlconnection
No comments:
Post a Comment