Instance Property

countOfBytesExpectedToReceive

The number of bytes that the task expects to receive in the response body.

Declaration

@property(readonly) int64_t countOfBytesExpectedToReceive;

Discussion

This value is determined based on the Content-Length header received from the server. If that header is absent, the value is NSURLSessionTransferSizeUnknown.

See Also

Obtaining Task Progress

progress

A representation of the overall task progress.

countOfBytesReceived

The number of bytes that the task has received from the server in the response body.

countOfBytesExpectedToSend

The number of bytes that the task expects to send in the request body.

countOfBytesSent

The number of bytes that the task has sent to the server in the request body.

NSURLSessionTransferSizeUnknown

The total size of the transfer cannot be determined.