Type Method

sessionWithConfiguration:

Creates a session with the specified session configuration.

Declaration

+ (NSURLSession *)sessionWithConfiguration:(NSURLSessionConfiguration *)configuration;

Parameters

configuration

A configuration object that specifies certain behaviors, such as caching policies, timeouts, proxies, pipelining, TLS versions to support, cookie policies, credential storage, and so on.

See NSURLSessionConfiguration for more information.

Discussion

Calling this method is equivalent to calling sessionWithConfiguration:delegate:delegateQueue: with a nil delegate and queue.

See Also

Creating a Session

+ sessionWithConfiguration:delegate:delegateQueue:

Creates a session with the specified session configuration, delegate, and operation queue.

NSURLSessionConfiguration

A configuration object that defines behavior and policies for a URL session.

configuration

A copy of the configuration object for this session.