Type Method

requestWithURL:cachePolicy:timeoutInterval:

Creates and returns an initialized URL request with specified URL, cache policy, and timeout values.

Declaration

+ (instancetype)requestWithURL:(NSURL *)URL cachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval;

Parameters

theURL

The URL for the new request.

cachePolicy

The cache policy for the new request.

timeoutInterval

The timeout interval for the new request, in seconds.

Return Value

The initialized URL request.

See Also

Creating Requests

+ requestWithURL:

Creates and returns a URL request for a specified URL.

- initWithURL:

Creates a URL request for a specified URL.

- initWithURL:cachePolicy:timeoutInterval:

Creates a URL request with the specified URL, cache policy, and timeout values.