Contents

URLSession.ResponseDisposition

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

Declaration

enum ResponseDisposition

Overview

When a data or upload task first receives a response, it calls the urlSession(_:dataTask:didReceive:completionHandler:) method of URLSessionDataDelegate. Implement this method to inspect the received URLResponse and then call the provided completion handler. The first parameter to the completion handler is of this type, a disposition that tells the task how to proceed.

Topics

Task dispositions

Initializers

See Also

Handling task life cycle changes