Instance Property

expectedContentLength

The expected length of the response’s content.

Declaration

var expectedContentLength: Int64 { get }

Discussion

This property’s value is NSURLResponseUnknownLength if the length can’t be determined.

Some protocol implementations report the content length as part of the response, but not all protocols guarantee to deliver that amount of data. Your app should be prepared to deal with more or less data.

See Also

Getting the Response Properties

var suggestedFilename: String?

A suggested filename for the response data.

var mimeType: String?

The MIME type of the response.

var textEncodingName: String?

The name of the text encoding provided by the response’s originating source.

var url: URL?

The URL for the response.