You are viewing documentation for a previous version of this software.

Switch to the latest stable version.

URLSessionClient.Completion


TYPEALIAS

URLSessionClient.Completion

Swift
1public typealias Completion = (Result<(Data, HTTPURLResponse), Error>) -> Void

A completion block returning a result. On .success it will contain a tuple with non-nil Data and its corresponding HTTPURLResponse. On .failure it will contain an error.

Feedback

Edit on GitHub

Forums