init(url:)
Creates a URL request for a specified URL.
Declaration
convenience init(url URL: URL)Parameters
- URL:
The URL for the request.
Return Value
The initialized URL request.
Discussion
The request is created with the with the default cache policy (NSURLRequest.CachePolicy.useProtocolCachePolicy), and the default timeout interval (60 seconds).