Instance Property count Of Bytes Expected To Send
The number of bytes that the task expects to send in the request body.
iOS 7.0+ macOS 10.9+ Mac Catalyst 13.0+ Beta tvOS 9.0+ watchOS 2.0+ Declaration @property(readonly) int64_t countOfBytesExpectedToSend;
The URL loading system can determine the length of the upload data in three ways:
From the length of the data object provided as the upload body.
From the length of the file on disk provided as the upload body of an upload task (
not a download task).
in the request object, if you explicitly set it.
Otherwise, the value is
( NSURLSession Transfer Size Unknown
) if you provided a stream or body data object, or zero (
) if you did not.
0 See Also Obtaining Task Progress progress
A representation of the overall task progress.
count Of Bytes Received
The number of bytes that the task has received from the server in the response body.
count Of Bytes Sent
The number of bytes that the task has sent to the server in the request body.
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