URLSession

E427884

URLSession is Apple’s networking API for performing HTTP and other URL-based data transfers in iOS, macOS, and related platforms.

All labels observed (2)

Label Occurrences
URLSession canonical 2
NSURLSession 1

How this entity was disambiguated

Statements (96)

Predicate Object
instanceOf Foundation framework API
class
networking API
conformsTo Sendable
createsWith URLSessionConfiguration.background(withIdentifier:)
URLSessionConfiguration.default
URLSessionConfiguration.ephemeral
definedIn Foundation framework
documentationURL https://developer.apple.com/documentation/foundation/urlsession
hasComponent URLSessionConfiguration
URLSessionDataDelegate
URLSessionDataTask
linked to: URLSessionTask

URLSessionDelegate
URLSessionDownloadDelegate
linked to: URLSessionDelegate

URLSessionDownloadTask
URLSessionStreamDelegate
URLSessionStreamTask
URLSessionTask
URLSessionTaskDelegate
URLSessionUploadTask
URLSessionWebSocketDelegate
URLSessionWebSocketTask
hasConfigurationType background session configuration
default session configuration
ephemeral session configuration
hasInitializer shared singleton session
hasMethod dataTask(with:)
dataTask(with:completionHandler:)
downloadTask(with:completionHandler:)
finishTasksAndInvalidate()
invalidateAndCancel()
streamTask(withHostName:port:)
uploadTask(with:from:completionHandler:)
webSocketTask(with:)
hasProperty shared
introducedBy Apple
linked to: Apple Inc.
language Objective-C
Swift
module Foundation
platform iOS
macOS
tvOS
visionOS
watchOS
primaryPurpose performing URL-based network data transfers
replaces NSURLConnection
supportsAuthenticationMethod HTTP basic authentication
HTTP digest authentication
client certificate authentication
server trust evaluation
supportsBackgroundExecution yes
supportsFeature HTTP additional headers configuration
HTTP cookie accept policy configuration
HTTP maximum connections per host configuration
HTTP pipelining (via configuration)
TLS/SSL
WebSocket tasks (URLSessionWebSocketTask)
linked to: WebSockets Standard

authentication and credential handling
background transfers
caching
cellular vs Wi-Fi control
cookie storage
data tasks
discretionary background transfers
download tasks
multipath TCP (on supported platforms)
multipathServiceType
network service type configuration
proxy configuration
request timeout configuration
resource timeout configuration
stream tasks
upload tasks
waitsForConnectivity
supportsMetrics URLSessionTaskMetrics
supportsOS iOS 7 and later
macOS 10.9 and later
supportsProtocol FTP
HTTP
HTTPS
custom URL schemes (via protocol handlers)
file URL
supportsResumingDownloads yes
supportsSecurityFeature App Transport Security (ATS) policies
TLS minimum and maximum protocol versions
custom trust evaluation via delegate
threadingModel callbacks on delegate queues
completion handlers on specified queues
usedFor REST API calls
WebSocket communication
file downloads
file uploads
streaming data over the network
usesPattern async-await APIs (in Swift)
completion-handler-based APIs
delegate-based callbacks

How these facts were elicited

Referenced by (3)

Full triples — surface form annotated when it differs from this entity's canonical label.

Combine integratesWith URLSession
Foundation includesType NSURLSession
linked to: URLSession
URL (Swift) usedWith URLSession