URLSession
class URLSession : NSObject
Utilities to perform data, download and upload tasks in a functional manner.
-
IO suspended version of
URLSession.dataTask(with:). Refer to that function for further documentation.Declaration
Swift
func dataTaskIO(with url: URL) -> DataIO -
IO suspended version of
URLSession.dataTask(with:). Refer to that function for further documentation.Declaration
Swift
func dataTaskIO(with request: URLRequest) -> DataIO
-
IO suspended version of
URLSession.downloadTask(with:). Refer to that function for further documentation.Declaration
Swift
func downloadTaskIO(with url: URL) -> DownloadIO -
IO suspended version of
URLSession.downloadTask(with:). Refer to that function for further documentation.Declaration
Swift
func downloadTaskIO(with request: URLRequest) -> DownloadIO -
IO suspended version of
URLSession.downloadTask(withResumeData:). Refer to that function for further documentation.Declaration
Swift
func downloadTaskIO(withResumeData data: Data) -> DownloadIO
-
IO suspended version of
URLSession.uploadTask(with:from:). Refer to that function for further documentation.Declaration
Swift
func uploadTaskIO( with request: URLRequest, from data: Data) -> DataIO -
IO suspended version of
URLSession.uploadTask(with:fromFile:). Refer to that function for further documentation.Declaration
Swift
func uploadTaskIO( with request: URLRequest, fromFile url: URL) -> DataIO
Install in Dash
URLSession Extension Reference