Open ClassFoundationNetworking5.9.0
URLSessionConfiguration
Configuration options for an URLSession.
class URLSessionConfiguration
When a session is created, a copy of the configuration object is made - you cannot modify the configuration of a session after it has been created.
The shared session uses the global singleton credential, cache and cookie storage objects.
An ephemeral session has no persistent disk storage for cookies, cache or credentials.
A background session can be used to perform networking operations on behalf of a suspended application, within certain constraints.
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 NSCopying
The
NSCopying
protocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made.protocol NSObjectProtocol
The
NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
Members
class var `default`: URLSessionConfiguration
class var ephemeral: URLSessionConfiguration
var allowsCellularAccess: Bool
var connectionProxyDictionary: [AnyHashable : Any]?
var httpAdditionalHeaders: [AnyHashable : Any]?
var httpCookieAcceptPolicy: HTTPCookie.AcceptPolicy
var httpCookieStorage: HTTPCookieStorage?
var httpMaximumConnectionsPerHost: Int
var httpShouldSetCookies: Bool
var httpShouldUsePipelining: Bool
var identifier: String?
var isDiscretionary: Bool
var networkServiceType: URLRequest.NetworkServiceType
var protocolClasses: [AnyClass]?
var requestCachePolicy: URLRequest.CachePolicy
var sharedContainerIdentifier: String?
var shouldUseExtendedBackgroundIdleMode: Bool
var timeoutIntervalForRequest: TimeInterval
var timeoutIntervalForResource: TimeInterval
var urlCache: URLCache?
var urlCredentialStorage: URLCredentialStorage?
func copy(
) -> Any func copy(with: NSZone?
) -> Any init(
)