Instance Property

countOfBytesSent

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

Declaration

@property(readonly) int64_t countOfBytesSent;

Discussion

This byte count includes only the length of the request body itself, not the request headers.

To be notified when this value changes, implement the URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: delegate method.

See Also

Obtaining Task Progress

progress

A representation of the overall task progress.

countOfBytesExpectedToReceive

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

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.

NSURLSessionTransferSizeUnknown

The total size of the transfer cannot be determined.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software