Swift NSURLConnection deprecated in iOS 9.0 : <p>I am trying to do a URL request to an api and return the results.</p>

<p>I am using NSURLConnection in Swift 2</p>

<pre><code>let requestString = "URL HERE"
let urlPath: String = requestString
        let url: NSURL = NSURL(string: urlPath)!
        let request: NSURLRequest = NSURLRequest(URL: url)
        let connection: NSURLConnection = NSURLConnection(request: request, delegate: self, startImmediately: true)!
        connection.start()
</code></pre>

<p>but I keep getting this warning:</p>

<pre><code>'init(request:delegate:startImmediately:)' was deprecated in iOS 9.0: Use NSURLSession (see NSURLSession.h)
</code></pre>

<p>I googled the warning and came up with nothing....how do I fix this?</p>
