objective c - What is the unit of the value returned by "expectedContentLength" -
i trying set data limit when doing connections.i using following function size of nsurlresponse.
nsurlresponse *response; long long size = [response expectedcontentlength]; i size :15219
is in bytes or bits?
expectedcontentlength set when server provides it, such content-length response header.
content-length defined by:
the content-length entity-header field indicates size of entity-body, in decimal number of octets, sent recipient or, in case of head method, size of entity-body have been sent had request been get.
so can assume byte unit on modern platform byte 8 bits long.
Comments
Post a Comment