func bytes(for: URLRequest, delegate: URLSessionTaskDelegate?) -> (URLSession.AsyncBytes, URLResponse)
Retrieves the contents of a URL based on the specified URL request and delivers an asynchronous sequence of bytes.
func bytes(from: URL, delegate: URLSessionTaskDelegate?) -> (URLSession.AsyncBytes, URLResponse)
Retrieves the contents of a given URL and delivers an asynchronous sequence of bytes.
struct URLSession.AsyncBytes
An asynchronous sequence of bytes.
バイトいくつかからなるある非同期シーケンス。
func data(for: URLRequest, delegate: URLSessionTaskDelegate?) -> (Data, URLResponse)
Downloads the contents of a URL based on the specified URL request and delivers the data asynchronously.
func data(from: URL, delegate: URLSessionTaskDelegate?) -> (Data, URLResponse)
Retrieves the contents of a URL and delivers the data asynchronously.
func download(for: URLRequest, delegate: URLSessionTaskDelegate?) -> (URL, URLResponse)
Retrieves the contents of a URL based on the specified URL request and delivers the URL of the saved file asynchronously.
func download(resumeFrom : Data, delegate: URLSessionTaskDelegate?) -> (URL, URLResponse)
Resumes a previously-paused download and delivers the URL of the saved file asynchronously.
func upload(for: URLRequest, from: Data, delegate: URLSessionTaskDelegate?) -> (Data, URLResponse)
Uploads data to a URL based on the specified URL request and delivers the result asynchronously.
func upload(for: URLRequest, fromFile : URL, delegate: URLSessionTaskDelegate?) -> (Data, URLResponse)
Uploads data to a URL and delivers the result asynchronously.
protocol URLSessionTaskDelegate
A protocol that defines methods that URL session instances call on their delegates to handle task-level events.
あるプロトコル、それはいくつかのメソッドを定義します、それらはURLセッションインスタンスがそれらの委任先上で呼び出してタスク水準イベントを取り扱うものです。