Contents

download(_:didReceive:)

Sent when a download object has received sufficient load data to construct the NSURLResponse object for the download.

Declaration

optional func download(_ download: NSURLDownload, didReceive response: URLResponse)

Parameters

  • download:

    The URL download object sending the message.

  • response:

    The URL response object received as part of the download. response is immutable and will not be modified after this method is called.

Discussion

In some rare cases, multiple responses may be received for a single download. In this case, the client should assume that each new response resets the download progress to 0 and should check the new response for the expected content length.

See Also

Download Data and Responses