Enumeration

URLSession.ResponseDisposition

Constants indicating how a data or upload session should proceed after receiving the initial headers.

Overview

A data or upload task’s urlSession(_:dataTask:didReceive:completionHandler:) delegate method passes these constants to the provided completion handler block.

Symbols

Constants

case cancel

Cancel the load. Equivalent to calling cancel() on the task.

case allow

Allow the load operation to continue.

case becomeDownload

Convert this request into a download task.

Enumeration Cases