Open ClassFoundationNetworking5.9.0
URLSession
class URLSession
Superclasses
class NSObject
The root class of most Foundation class hierarchies.
Citizens in FoundationNetworking
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol NSObjectProtocol
The
NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
Members
init(configuration: URLSessionConfiguration
) init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue: OperationQueue?
) class var shared: URLSession
var configuration: URLSessionConfiguration
var delegate: URLSessionDelegate?
var delegateQueue: OperationQueue
var sessionDescription: String?
func dataTask(with: URL
) -> URLSessionDataTask func dataTask(with: URLRequest
) -> URLSessionDataTask func dataTask(with: URL, completionHandler: (Data?, URLResponse?, Error?) -> Void
) -> URLSessionDataTask func dataTask(with: URLRequest, completionHandler: (Data?, URLResponse?, Error?) -> Void
) -> URLSessionDataTask func downloadTask(with: URL
) -> URLSessionDownloadTask func downloadTask(with: URLRequest
) -> URLSessionDownloadTask func downloadTask(with: URL, completionHandler: (URL?, URLResponse?, Error?) -> Void
) -> URLSessionDownloadTask func downloadTask(with: URLRequest, completionHandler: (URL?, URLResponse?, Error?) -> Void
) -> URLSessionDownloadTask func downloadTask(withResumeData: Data
) -> URLSessionDownloadTask func downloadTask(withResumeData: Data, completionHandler: (URL?, URLResponse?, Error?) -> Void
) -> URLSessionDownloadTask func finishTasksAndInvalidate(
) func flush(completionHandler: () -> Void
) func getAllTasks(completionHandler: ([URLSessionTask]) -> Void
) func getTasksWithCompletionHandler(([URLSessionDataTask], [URLSessionUploadTask], [URLSessionDownloadTask]) -> Void
) func invalidateAndCancel(
) func reset(completionHandler: () -> Void
) func uploadTask(with: URLRequest, from: Data
) -> URLSessionUploadTask func uploadTask(with: URLRequest, from: Data?, completionHandler: (Data?, URLResponse?, Error?) -> Void
) -> URLSessionUploadTask func uploadTask(with: URLRequest, fromFile: URL
) -> URLSessionUploadTask func uploadTask(with: URLRequest, fromFile: URL, completionHandler: (Data?, URLResponse?, Error?) -> Void
) -> URLSessionUploadTask func uploadTask(withStreamedRequest: URLRequest
) -> URLSessionUploadTask func webSocketTask(with: URL
) -> URLSessionWebSocketTask func webSocketTask(with: URLRequest
) -> URLSessionWebSocketTask func webSocketTask(with: URL, protocols: [String]
) -> URLSessionWebSocketTask enum AuthChallengeDisposition
enum DelayedRequestDisposition
enum ResponseDisposition