Type Method


Creates a session with the specified session configuration.


+ (NSURLSession *)sessionWithConfiguration:(NSURLSessionConfiguration *)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.


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.


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


A copy of the configuration object for this session.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software